1
0
Fork 0

Move deploy directory to /opt/partynest (closes #22)

This commit is contained in:
Alex Kotov 2018-12-08 18:56:09 +05:00
parent 5a16c6504a
commit 29beee2117
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 5 additions and 5 deletions

View file

@ -41,8 +41,8 @@ Tested with **Ubuntu Server 18.04 LTS**.
### Steps
* Create directory `/var/www/partynest/` writable by deploy user
* Copy file `config/master.key` to `/var/www/partynest/shared/config/`
* Create directory `/opt/partynest/` writable by deploy user
* Copy file `config/master.key` to `/opt/partynest/shared/config/`
* Create PostgreSQL role `partynest` with password `password`
* Create PostgreSQL database `partynest_production` owned by `partynest`
@ -68,7 +68,7 @@ StandardError=syslog
SyslogIdentifier=partynest-web
Type=simple
User=user
WorkingDirectory=/var/www/partynest/current
WorkingDirectory=/opt/partynest/current
[Install]
WantedBy=multi-user.target
@ -91,7 +91,7 @@ StandardError=syslog
SyslogIdentifier=partynest-worker
Type=simple
User=user
WorkingDirectory=/var/www/partynest/current
WorkingDirectory=/opt/partynest/current
[Install]
WantedBy=multi-user.target

View file

@ -10,7 +10,7 @@ set :repo_url, 'git@github.com:libertarian-party/partynest.git'
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
# Default deploy_to directory is /var/www/my_app_name.
# set :deploy_to, '/var/www/my_app_name'
set :deploy_to, "/opt/#{fetch(:application)}"
# Default value for :format is :airbrussh.
# set :format, :airbrussh