Add debian package configuration for deployment

This commit is contained in:
notplants
2021-05-19 14:14:26 +02:00
parent 5b7112645b
commit 88cc73eb2c
9 changed files with 60 additions and 12 deletions

7
deploy_prod.sh Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# this script rebuilds the peach-dyndns-server for prod deployment using the dev folder as the source repo
cd /srv/peachcloud/peach-dyndns-server/dev-peach-dyndns
cargo deb
sudo dpkg -i target/debian/peach-dyndns-server_0.1.0_amd64.deb
sudo systemctl restart peach-dyndns-server
sudo systemctl restart nginx