Make deploying easier
This commit is contained in:
parent
fc55f2c046
commit
becb8c4ce7
2 changed files with 25 additions and 1 deletions
17
README.md
17
README.md
|
|
@ -16,9 +16,24 @@ pnpm run build
|
||||||
rsync -rv --delete dist/ public-web-static.hosts.hamburg.ccc.de:ueberwachungsfrei.eu/
|
rsync -rv --delete dist/ public-web-static.hosts.hamburg.ccc.de:ueberwachungsfrei.eu/
|
||||||
```
|
```
|
||||||
|
|
||||||
Then on public-web-static
|
Then on public-web-static:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo rsync -rv --delete --chown=ueberwachungsfrei-deploy:ueberwachungsfrei-deploy ./ueberwachungsfrei.eu/ /var/www/ueberwachungsfrei.eu/
|
sudo rsync -rv --delete --chown=ueberwachungsfrei-deploy:ueberwachungsfrei-deploy ./ueberwachungsfrei.eu/ /var/www/ueberwachungsfrei.eu/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Configuring SSH for public-web-static
|
||||||
|
|
||||||
|
You need CCCHH Infra access for the following:
|
||||||
|
|
||||||
|
```
|
||||||
|
Host router
|
||||||
|
Hostname router.hamburg.ccc.de
|
||||||
|
User chaos
|
||||||
|
|
||||||
|
Host public-web-static
|
||||||
|
Hostname public-web-static.hosts.hamburg.ccc.de
|
||||||
|
User chaos
|
||||||
|
IdentitiesOnly yes
|
||||||
|
ProxyJump router
|
||||||
|
```
|
||||||
|
|
|
||||||
9
deploy.sh
Executable file
9
deploy.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# the instructions from the readme
|
||||||
|
|
||||||
|
pnpm run build
|
||||||
|
rsync -rv --delete dist/ public-web-static:ueberwachungsfrei.eu/
|
||||||
|
ssh public-web-static sudo rsync -rv --delete --chown=ueberwachungsfrei-deploy:ueberwachungsfrei-deploy ./ueberwachungsfrei.eu/ /var/www/ueberwachungsfrei.eu/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue