General Guidelines for Developing a Rails Application with SVN
This is a wiki article created by HostingRails users. Please login or signup to make edits.
Its a good idea to have a general idea of the steps involved with developing and deploying a Rails application with SVN. The following are examples of what can be done if you are on a windows box deploying onto HostingRails (assuming you don't want to mess around with Capistrano):
1. Follow the SVN tutorial which will get you set up with a scaffold Rails application in a SVN repository.
4. Using RadRails, TortiseSVN, or similar SVN client, check out the code using svn+ssh to a folder on your local box.
5. Develop and test your project locally. Commit changes regularly.
6. Once you are ready to deploy, log onto the HostingRails.com account, and checkout a version from SVN to a root folder with your project name (or into a folder called <projects> or similar)
7. Create symlinks to that site and you are ready to go, adding addon domains through cPanel, etc.
8. Any future changes made locally can be uploaded to SVN by commiting and your live website can be updated by using SVN's update feature when logged into the servers. Remember to killall processes for updates to take place (if you're on Fastcgi, otherwise for Mongrel do a mongrel_rails restart).
9. If you wish to have multiple developers for your app, follow the multi-user SVN tutorial and you can check out over HTTP.
Enric
William