Skip to content

Deployment

Marius Avram edited this page Mar 21, 2016 · 1 revision

Deployment

Capistrano

First add your ssh key (id_rsa.pub) to the server. Create a production stage in config/deploy/ following the sample.rb provided. For database tasks you will need to make sure there is a value in /etc/environment for '''$DB_PASS'''. (Password for the Classis db user => same as in your dbh_connect.php file).

Then you should be able to deploy from your machine:

cd path/to/local/classis/
cap production deploy

You can rollback to the previous version deployed using:

cap production deploy:rollback

You can see the latest release info with:

cap production info:version

You can download the production database, config or the production epf directory (it goes to ../productions_downloads directory) using:

cap production database:download
cap production database:download_data
cap production deploy:download_config   //downloads all external config files (dbh_connect, school.php, etc.)

You can see your config for a stage ('user@host:port/deploy_to_dir' format):

cap production info:sshconfig

See all available cap commands:

cap -T

Clone this wiki locally