Deployment

Check if everything is fine

You can skip this step. Capistrano will run it every time you run cap dev deploy.

Before we deploy we might want to check if we can connect to the server and create the necessary directories.

$ cap dev deploy:check

On the server we have now created the following structure in /var/www/your-domain/:

.
|-- releases
`-- shared

Deploying

If everything went ok then you are ready to actually deploy your website.

$ cap dev deploy

When we go back to the server we see a linked directory current:

.
|-- current -> /var/www/your-domain/releases/20160610T1303-42/
|-- releases
|   `-- 20160610T1303-42
|       |-- index.html
|       `-- REVISION
|-- revisions.log
`-- shared

Search Results powered by Algolia Search