如何使用 Git 手动部署 Rails 应用程序
我是 Rails 新手,我想部署我的第一个应用程序。我意识到部署涉及很多步骤。
部署 Rails 应用程序的所有必要步骤是什么,即使用 Git 作为 VCS。
如果无法解释所有部分,请列出需要完成的任务及其摘要。
我知道有 capistrano 可以帮助自动化这些任务,但是,我想知道发生了什么,以便以后可以使用 capistrano 进行自动化,并做出更有根据的判断。
I'm New to Rails, I want to deploy 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 Heroku 或 EngineYard,因为它们是当今主要的云托管解决方案(它们都支持 Amazon 并利用 EC2 和 EBS)
它们都有关于如何使用 git 的详细说明:
Heroku: http://devcenter.heroku.com/articles/git
引擎场:http://docs.engineyard.com/host-your-code-on-github .html
在选择时,Heroku 提供更全面的服务,而 Engine Yard 是更传统的服务,让您可以访问盒子,但需要系统管理技能。
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.
您可以使用 Git 挂钩,并使用一个用于后推送,该挂钩将在推送后执行更新 Rails 应用程序所需执行的任何操作。
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.