简体   繁体   English

部署后如何更新Ruby on Rails应用程序?

[英]How to update Ruby on Rails app after deployment?

Let's say I have deployed my Rails app on a VPS, and everything works fine. 假设我已经在VPS上部署了Rails应用程序,并且一切正常。 MySQL is populating. MySQL正在填充。

Then I wanna change the functionality or view of the app. 然后,我想更改应用程序的功能或视图。 What should I do next? 接下来我该怎么办?

Probably using CentOS, Passanger, nginx, MySQL and GIT. 可能使用CentOS,Passanger,nginx,MySQL和GIT。

There's several tools that can help you with this kind of things, I think the most widely used is Capistrano . 有几种工具可以帮助您解决这类问题,我认为使用最广泛的工具是Capistrano But in essence it's nothing magical. 但从本质上讲,这没有什么神奇的。 Upload the new code and it should be ready to go. 上载新代码,应该可以使用了。 If you have done any modifications to the database, you should take the app offline before upgrading it, then run migrations, and go back online again. 如果您已对数据库进行了任何修改,则应先使该应用程序脱机,然后再对其进行升级,然后运行迁移,然后再次联机。

You can use capistrano to deploy new versions of your application. 您可以使用capistrano部署应用程序的新版本。

The idea is to develop locally, run and test the application locally. 这个想法是在本地开发,在本地运行和测试应用程序。
And when you're ready to deploy, you use capistrano to update the source code in the production server. 当您准备好进行部署时,可以使用capistrano更新生产服务器中的源代码。

它也有助于了解数据库迁移

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 重新部署后如何解决heroku应用程序的部署错误。 我正在为此特定应用程序在轨道上运行ruby - How to fix deployment error for heroku app after re-deploying it. I am running ruby on rails for this particular app Ruby on Rails Capistrano无需部署即可更新代码 - Ruby on Rails Capistrano to update the code without deployment 部署后如何设置或调试Heroku Ruby应用 - How to setup or debug Heroku Ruby app after deployment 在 ruby-on-rails 应用程序上提交带有 AJAX 的表单后,如何让 jQuery 更新页面上的元素? - How can i get jQuery to update an element on a page after submitting a form with AJAX on a ruby-on-rails app? Heroku部署中的Ruby on Rails应用错误 - Ruby on Rails app error in heroku deployment 在heroku上的rails app上部署第一个ruby - deployment first ruby on rails app on heroku 在Rails应用程序上部署我的红宝石的问题 - issue with deployment of my ruby on rails app 部署后缺少宝石(Ruby,Ruby on Rails,Capistrano) - Gems missing after deployment (Ruby, Ruby on Rails, Capistrano) 如何基于Rails on Rails 4应用程序中的答案更新数据库列 - how to update database column based on answer in ruby on rails 4 app 在Ruby On Rails中插入注释ajax之后如何通过ajax更新分页 - How to update pagination by ajax after insert comment ajax in Ruby On Rails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM