简体   繁体   English

Rails应用程序部署在Heroku上

[英]Rails app deploy on Heroku

I'm new in rails app development I am little bit confusing about rails deployment. 我是Rails应用程序开发的新手,我对Rails的部署有点困惑。

I following this guide below and done at all. 我按照下面的指南进行操作。 That mean my rails app on production mode? 这意味着我的Rails应用程序处于生产模式吗?

Need to change Puma RACK_ENV to 'production' in Profile before pushing to heroku? 是否需要在将Puma RACK_ENV更改为Profile中的“ production”后才能推送到heroku?

https://devcenter.heroku.com/articles/getting-started-with-rails4 https://devcenter.heroku.com/articles/getting-started-with-rails4

I believe so. 我相信是这样。 The entire tutorial is setting up your rails server to work in production mode. 整个教程将设置Rails服务器以在production模式下工作。 Using some inductive logic, it seems that the tutorial is assuming you're in production: 使用一些归纳逻辑,该教程似乎假设您正在生产中:

"Rails 4 no longer has a static index page in production. When you're using a new app, there will not be a root page in production, so we need to create one. We will first create a controller called welcome for our home page to live:" “ Rails 4在生产中不再具有静态索引页面。当您使用新应用时,生产中将没有根页面,因此我们需要创建一个根页面。我们将首先为家创建一个名为welcome的控制器。活页:”

Indicates to me that it's assuming your rails server will be running in production. 向我表明,这是假设您的Rails服务器将在生产中运行。

To make doubly sure, you can check the heroku logs and look for a line that says: 为了更加确定,您可以检查heroku logs并查找显示以下内容的行:

Rails [your version] application starting in production

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

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