... | ... | @@ -20,7 +20,30 @@ In short: |
|
|
* `shared` contains things that are symlinked into the current folder (configs, keys, etc.)
|
|
|
* `releases` contains the last 5 releases (used for rollbacks)
|
|
|
|
|
|
## Running a rollback
|
|
|
### Running a rollback
|
|
|
To rollback to the previous release, execute `bundle exec cap production deploy:rollback`. Please note that database migrations will not be undone.
|
|
|
|
|
|
If the database needs to be restored, run `TODO` to restore from the previously backed up database. The database is backed up right before a deployment starts. |
|
|
\ No newline at end of file |
|
|
If the database needs to be restored, run `TODO` to restore from the previously backed up database. The database is backed up right before a deployment starts.
|
|
|
|
|
|
## Service
|
|
|
The service is an `@` service (i.e. `passenger@.service`) which runs the specified application:
|
|
|
|
|
|
```
|
|
|
[Unit]
|
|
|
Description=Passenger Standalone Application Server
|
|
|
After=network.target
|
|
|
|
|
|
[Service]
|
|
|
Type=forking
|
|
|
PrivateTmp=yes
|
|
|
User=www-data
|
|
|
Group=www-data
|
|
|
WorkingDirectory=/var/www/%i
|
|
|
PIDFile=/var/www/%i/passenger/app.pid
|
|
|
ExecStart=/usr/local/bin/passenger-app %i start
|
|
|
ExecReload=/usr/local/bin/passenger-app %i reload
|
|
|
ExecStop=/usr/local/bin/passenger-app %i stop
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=multi-user.target
|
|
|
``` |
|
|
\ No newline at end of file |