简体   繁体   中英

Redeploying (Updating) Rails App w/ Phusion Passenger

I have what I hope is a simple question. I'm pretty new to rails/web apps, so I apologize for any obvious lack of knowledge demonstrated in asking this question.

Essentially, I've been updating/maintaining an existing Rails app that I didn't develop/deploy. Up to this point, all the changes I've made are so minor that I felt comfortable doing them live (undesirable, I know), but I've recently had to make some changes that involved installing some new gems and updating the database. To do so, I pulled the app/db from the production server, recreated the production environment, and made all necessary changes locally. Put simply, my question is: what is the safest/easiest way to update the app/bundle/db on the production server?

I know there are myriad tutorials regarding deployment with Passenger, but I haven't been able to find anything that specifically references updating an app that's already in production. Is there a distinction between initial deployment and redeploying an updated app?

Tech stack is Ruby 1.9.3, Phusion Passenger on Apache, and PostgreSQL 9.1.3.

Thanks in advance.

可以简单地上传代码,运行bundle install然后运行bundle install bundle exec rake db:migrate并每天调用它,但是标准过程是使用Capistrano之类的工具 ,在部署Rails应用程序方面可以找到大量的教程和指南。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM