server:stagit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| server:stagit [2025/08/24 07:25] – [Installation] marlonivo | server:stagit [2025/08/24 07:36] (current) – [Cloning] marlonivo | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| =====nginx (server side)===== | =====nginx (server side)===== | ||
| - | Our stagit projects only needs a repo for (of course) our bare repos and a html folder for (guess what) our html files which are generated by stagit. | + | Our stagit projects only need a repo folder |
| < | < | ||
| mkdir -p / | mkdir -p / | ||
| Line 64: | Line 64: | ||
| </ | </ | ||
| - | Then copy your basic website files to the stagit folder (here is a example [[https:// | + | Then copy your basic website files to the stagit folder (here is an example [[https:// |
| < | < | ||
| / | / | ||
| ├── project2 | ├── project2 | ||
| ├── project1 | ├── project1 | ||
| - | ├── style.css | + | ├── style.css |
| ├── favicon.ico | ├── favicon.ico | ||
| └── logo.png | └── logo.png | ||
| </ | </ | ||
| - | Set the right permissions for the whole directory, '' | + | Set the right permissions for the complete |
| < | < | ||
| chown -R git: | chown -R git: | ||
| Line 86: | Line 86: | ||
| =====stagit (local side)===== | =====stagit (local side)===== | ||
| - | + | Then go to your local project directory and initialise | |
| - | Then go to local project directory and initliase | + | |
| < | < | ||
| cd project1 | cd project1 | ||
| Line 94: | Line 93: | ||
| git remote -v | git remote -v | ||
| git config user.name "Your Name" | git config user.name "Your Name" | ||
| + | git config user.email " | ||
| </ | </ | ||
| - | Now inside your freshly generated bare git folder, change the description, | + | Now inside your freshly generated bare git folder |
| < | < | ||
| / | / | ||
| - | ├── description | + | ├── description |
| - | ├── owner - owner name of the repo. | + | ├── owner ← 2. |
| - | ├── url - e.g: git:// | + | ├── url ← 3. |
| - | └── git-daemon-export-ok | + | └── git-daemon-export-ok |
| </ | </ | ||
| - | As well as in your '' | + | As well as in your '' |
| <code bash> | <code bash> | ||
| #!/bin/sh | #!/bin/sh | ||
| Line 136: | Line 136: | ||
| git commit -m " | git commit -m " | ||
| git push stagit master | git push stagit master | ||
| - | # git push aur master | + | # git push aur master |
| - | # git push github master | + | # git push github master |
| } | } | ||
| </ | </ | ||
| Line 156: | Line 156: | ||
| [Service] | [Service] | ||
| - | ExecStart=/ | + | ExecStart=/ |
| --base-path=/ | --base-path=/ | ||
| --export-all \ | --export-all \ | ||
| Line 176: | Line 176: | ||
| </ | </ | ||
| - | Then open port 9418 in your firewall: | + | Then open port 9418 in your firewall |
| < | < | ||
| sudo ufw allow 9418/tcp | sudo ufw allow 9418/tcp | ||