save db in a persistent folder, /var/run is not persistent in every OS
This commit is contained in:
parent
898f229145
commit
9b01ac7eac
|
@ -118,8 +118,8 @@ echo "Enter your domain name into the following prompt:" && read DOMAIN
|
||||||
sudo sed -r "s/example.org/$DOMAIN/g" deployment/example.org.conf > /etc/nginx/sites-enabled/$DOMAIN.conf
|
sudo sed -r "s/example.org/$DOMAIN/g" deployment/example.org.conf > /etc/nginx/sites-enabled/$DOMAIN.conf
|
||||||
|
|
||||||
# create folder for socket
|
# create folder for socket
|
||||||
sudo mkdir /var/run/ticketfrei
|
sudo mkdir /var/ticketfrei
|
||||||
sudo chown www-data:www-data -R /var/run/ticketfrei
|
sudo chown www-data:www-data -R /var/ticketfrei
|
||||||
sudo chown www-data:www-data -R /var/log/ticketfrei
|
sudo chown www-data:www-data -R /var/log/ticketfrei
|
||||||
|
|
||||||
# start up nginx
|
# start up nginx
|
||||||
|
|
|
@ -14,7 +14,4 @@ user = "user"
|
||||||
passphrase = "sup3rs3cur3"
|
passphrase = "sup3rs3cur3"
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
db_path = "/var/run/ticketfrei/db.sqlite"
|
db_path = "/var/ticketfrei/db.sqlite"
|
||||||
# when migrating to mysql:
|
|
||||||
# username = "username"
|
|
||||||
# password = "password"
|
|
||||||
|
|
Loading…
Reference in a new issue