Skip to content
gnomet edited this page Nov 29, 2010 · 4 revisions

One easy way of deploying ASI is using Capistrano. The code has already a config/depoy.rb file that has few preconfigured servers. You can add your own to the if at the start and set all the variables according to your own server. Then the deployment should be as easy as:

  cap deploy DEPLOY_ENV=name_of_your_server

The deploy command of capistrano basically retrieves the lates code from the repository. For any information that is server specific and should not be overwritten, the shared folder should be used. There are some symlinks made everytime a new deploy is run (e.g. to config.yml and database.yml) and it is possible to add more of those by modifying the deploy.rb. Generally, it is a good idea to gather most of the server specific settings to config.yml, but if there is need for other files in shared, they can be added.