mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
rename posterg → xamxam throughout: nginx conf, scripts, PHP source, docs
This commit is contained in:
14
README.md
14
README.md
@@ -41,8 +41,8 @@ just serve # http://localhost:8000 (public) and /admin/
|
||||
Files are pushed to the server with rsync — there is no repo on the remote.
|
||||
|
||||
```bash
|
||||
just deploy # rsync app files → posterg:/var/www/posterg/
|
||||
just deploy-db # push local posterg.db → remote (only if remote DB is absent)
|
||||
just deploy # rsync app files → xamxam:/var/www/xamxam/
|
||||
just deploy-db # push local xamxam.db → remote (only if remote DB is absent)
|
||||
```
|
||||
|
||||
`deploy-db` refuses to run if a database already exists on the server, to avoid
|
||||
@@ -51,10 +51,10 @@ accidental overwrites of production data.
|
||||
### First-time server setup
|
||||
|
||||
```bash
|
||||
ssh posterg
|
||||
sudo mkdir -p /var/www/posterg
|
||||
sudo chown www-data:posterg /var/www/posterg
|
||||
sudo chmod 775 /var/www/posterg
|
||||
ssh xamxam
|
||||
sudo mkdir -p /var/www/xamxam
|
||||
sudo chown www-data:xamxam /var/www/xamxam
|
||||
sudo chmod 775 /var/www/xamxam
|
||||
exit
|
||||
```
|
||||
|
||||
@@ -70,7 +70,7 @@ just deploy-nginx
|
||||
```bash
|
||||
just manage-admin-users
|
||||
# Then on server:
|
||||
ssh posterg "sudo bash /tmp/manage-admin-users.sh"
|
||||
ssh xamxam "sudo bash /tmp/manage-admin-users.sh"
|
||||
```
|
||||
|
||||
## Security notes
|
||||
|
||||
Reference in New Issue
Block a user