I am in the process of migrating several rails apps from a single server
that runs nginx, mongrel, and mysql to separate (virtual) servers and am
wondering if I am, perhaps, overthinking my new deployment strategy. I
am using Capistrano 2.1, btw…
What I would prefer is for the app tree to be deployed such that the
rails app stuff is only on the vm running the mongrels, the static files
would go to the nginx server (which is proxying to the rails backend)
and no files would get put on the mysql server… but this leaves me
with a few questions
Is it safe to omit the public folder when publishing to the app role?
Are there other folders in my rails app tree I can omit during
deployment to production (like test…)?
Is there an easier way to exclude files/folders from being deployed to a
role than just sending them and then deleting them? I am using the
copy+tgz strategy to update code to avoid the need for scm utils on the
Thanks for any suggestions…