<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;To get a Rails app up and running with Strano, first we need to install Strano as a plugin. You can just install it as a normal plugin (All of these commands should be run from the root of your Rails app):&lt;/p&gt;
&lt;pre&gt;./script/plugin install git://github.com/johnnyt/strano.git&lt;/pre&gt;
&lt;p&gt;We have this directory structure:&lt;/p&gt;
&lt;pre&gt;  projects_root
    |- strano_custom_files            # This is our private git repo for the Variables file, etc
    |- rails_app                      # Any Rails application
    |   |- config
    |       |- deploy.rb
    |       |- strano_custom_files    # Symlink to ../../strano_custom_files&lt;/pre&gt;
&lt;p&gt;This way all of our applications have the config/strano_custom_files symlinked to ../../strano_custom_files, so that symlink can be checked into git.&lt;/p&gt;
&lt;p&gt;So &amp;#8211; now let&amp;#8217;s get the config files setup (This should be handled automatically in the future).&lt;/p&gt;
&lt;pre&gt;cp vendor/plugins/strano/examples/rails_app/config/deploy.rb config/
cd config
ln -s ../../strano_custom_files strano_custom_files
cd ..&lt;/pre&gt;
&lt;p&gt;Now if you run &lt;code&gt;cap -T&lt;/code&gt; from the app root, you should get something like this:&lt;/p&gt;
&lt;pre&gt;cap deploy                        # Deploys your project.
cap deploy:check                  # Test deployment dependencies.
cap deploy:cleanup                # Clean up old releases.
cap deploy:cold                   # Deploys and starts a `cold' application.
cap deploy:migrate                # Run the migrate rake task.
cap deploy:migrations             # Deploy and run pending migrations.
cap deploy:pending                # Displays the commits since your last deploy.
cap deploy:pending:diff           # Displays the `diff' since your last deploy.
cap deploy:restart                # Restarting Passenger with restart.txt
cap deploy:rollback               # Rolls back to a previous version and rest...
cap deploy:rollback:code          # Rolls back to the previously deployed ver...
cap deploy:setup                  # Prepares one or more servers for deployment.
cap deploy:symlink                # Updates the symlink to the most recently ...
cap deploy:update                 # Copies your project and updates the symlink.
cap deploy:update_code            # Copies your project to the remote servers.
cap deploy:upload                 # Copy files to the currently deployed vers...
cap deploy:web:disable            # Present a maintenance page to visitors.
cap deploy:web:enable             # Makes the application web-accessible again.
cap invoke                        # Invoke a single command on the remote ser...
cap maint:off                     # Take down the maintenance page
cap maint:on                      # Put up the maintenance page
cap nginx:disable                 # Disable the site on the NGINX level
cap nginx:enable                  # Enable the site on the NGINX level
cap nginx:restart                 # Restart NGINX
cap password:deploy               # Enters deploy's PW on the server
cap production                    # Set the target stage to 'production'.
cap sass:update                   # Updates the stylesheets generated by Sass
cap shell                         # Begin an interactive Capistrano session.
cap slice:nginx:restart           # Restart NGINX
cap slice:password:deploy         # Enters deploy's PW on the server
cap slice:setup                   # Setup a new slice from scratch (will prom...
cap slice:status:passenger:memory # Display Passenger memory usage.
cap slice:status:passenger:status # Display Passenger status information.
cap slice:update_keys             # Update ~/.ssh/authorized_keys and reload ...
cap slice:update_shell_env        # Updates the shell env (.bashrc, .vimrc, etc)
cap slice:update_ssh_config       # Update ~/.ssh/config - automatically adds...
cap snapshot:to:local             # Local
cap snapshot:to:staging           # Staging
cap staging                       # Set the target stage to 'staging'.
cap strano:setup                  # Setup the site on a server (deploy:setup,...
cap tail:rails                    # Tail rails log.

Some tasks were not listed, either because they have no description,
or because they are only used internally by other tasks. To see all
tasks, type `cap -vT'.

Extended help may be available for these tasks.
Type `cap -e taskname' to view it.&lt;/pre&gt;</body>
  <created-at type="datetime">2010-01-04T12:49:50-08:00</created-at>
  <id type="integer">391368</id>
  <permalink>setting-up-a-rails-app</permalink>
  <repository-id type="integer">350560</repository-id>
  <title>Setting up a Rails App</title>
  <updated-at type="datetime">2009-11-06T17:38:10-08:00</updated-at>
  <user-id type="integer">4096</user-id>
</wiki>
