开发者

ec2 deployments in rails

I know this question has probably been asked so many times here, but I didn't really find a good answer. I'm trying to find a simplest solution to do basically just checkout a git project on an ec2 instance, checkout a specific branch and then restart apache server.

I'm not sure if Capistrano is what I need. I'm fine with some shell script or ruby script which basically just invokes commands like 'git clone....', 'git checkout branch...' and 'restart apache server'

Is there a framework which lets me do this so I don't really have to开发者_开发技巧 write a script from scratch.


First off, are we talking about "Deployment" or about "just get a codebase and copy to the server"?

In the first case, Deployment is a set of common practices, as following:

  • "server" as abstractions
  • keep versions and rollback ability
  • database migration, rollback and backup functionality
  • manage background processing

It's actually mean manage the full-stack application, not only "restart httpd" or something else.

Capistrano developed with 37signals contributions and they are using it on many projects. A lot of projects use capistrano or the same tool to do deployments. Look at this again, it's easy to setup and use.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜