Move deploy directory to /opt/partynest (closes #22)
This commit is contained in:
parent
5a16c6504a
commit
29beee2117
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue