SwitchTower is a utility that ships with Rails, and which may be used to automate the deployment of your applications.
Read more in the book SwitchTower: Automating Application Deployment
A few notes about using SwitchTower on a Windows development machine deploying to a *nix environment.
There are two ways to do this. One is to edit the switchtower.rake template file before creating your application. This will ensure that all future applications you create on your Windows machine will have the properly edited switchtower.rake file. This template is located at C:\ruby\lib\ruby\site_ruby\1.8\switchtower\generators\rails\deployment\templates\
If you have already created an application, you’ll need to edit the switchtower file which exists in your .\lib\tasks\ folder.
Either way, go through the file and find anywhere where it says
system "switchtower -vvvv ...."
system "switchtower.cmd -vvvv ...."
Subversion on your development machine needs to know that your script files and your dispatch.fcgi file are executable files so that it chmods them appropriately. Also it needs to know to change the end-of-line characters from Windows-based to Linux-based characters.
In order to do this you need to change a couple of SVN properties on each of these files. Note: You can now do this with TortoiseSVN, Right click on the file and click on properties. There will be a Subversion tab where the properties can be set.
For each of these files, open a command window and navigate to their folder. Execute the following on your command line:
svn propset svn:executable command command
svn propset svn:eol-style native command
SwitchTower is a utility that ships with Rails, and which may be used to automate the deployment of your applications.
Read more in the book SwitchTower: Automating Application Deployment
A few notes about using SwitchTower on a Windows development machine deploying to a *nix environment.
There are two ways to do this. One is to edit the switchtower.rake template file before creating your application. This will ensure that all future applications you create on your Windows machine will have the properly edited switchtower.rake file. This template is located at C:\ruby\lib\ruby\site_ruby\1.8\switchtower\generators\rails\deployment\templates\
If you have already created an application, you’ll need to edit the switchtower file which exists in your .\lib\tasks\ folder.
Either way, go through the file and find anywhere where it says
system "switchtower -vvvv ...."
system "switchtower.cmd -vvvv ...."
Subversion on your development machine needs to know that your script files and your dispatch.fcgi file are executable files so that it chmods them appropriately. Also it needs to know to change the end-of-line characters from Windows-based to Linux-based characters.
In order to do this you need to change a couple of SVN properties on each of these files. Note: You can now do this with TortoiseSVN, Right click on the file and click on properties. There will be a Subversion tab where the properties can be set.
For each of these files, open a command window and navigate to their folder. Execute the following on your command line:
svn propset svn:executable command command
svn propset svn:eol-style native command