I'm New to Rails, I want to d开发者_StackOverfloweploy my first app. I realized there are many steps involved in deployment.
What are all the necessary steps in deploying a rails app, that is using Git as VCS.
If explaining all parts is not possible, list the tasks that need to be done and a summary of it.
I know there is capistrano to help automate those tasks, But, I like to know what is going on, so that I can automate later with capistrano, with more educated judgements.
Use Heroku or EngineYard as these are the main cloud hosting solutions today (they both are backed onto Amazon and leverage EC2 and the EBS)
They both have great instructions on how to use git with them:
Heroku: http://devcenter.heroku.com/articles/git
Engine Yard: http://docs.engineyard.com/host-your-code-on-github.html
In choosing, Heroku is more full-service whereas Engine Yard is a more traditional service, giving you access to boxes but needing sysadmin skills.
You could use the Git hooks and use one for a post-push that will execute any thing that needs to be done to update your Rails app after it's been pushed.
精彩评论