将Ruby on Rails应用程序部署到Google App Engine

时间:2021-08-27 23:12:09

I am attempting to deploy my Rails application to the Google App Engine, but thus far unsuccessfully. I have deployed the Ruby development stack following the instructions but that is where they stop, there is nothing on how to actually link my app from localhost and deploy to the AppEngine to view in browser.

我正在尝试将我的Rails应用程序部署到Google App Engine,但迄今为止都没有成功。我按照说明部署了Ruby开发堆栈,但这就是他们停止的地方,没有关于如何从localhost实际链接我的应用程序并部署到AppEngine以在浏览器中查看的内容。

There is this question: Ruby on Rails app on Google App Engine answering the problem, but appears greatly outdated.

有一个问题:Google App Engine上的Ruby on Rails应用程序可以解决这个问题,但是看起来已经过时了。

How can I deploy my Rails App to Google App Engine?

如何将我的Rails应用程序部署到Google App Engine?

1 个解决方案

#1


0  

The quickstart link provided by Michael is useful when you are using just Ruby. If you want to use Ruby on Rails, you can follow this tutorial.

当您使用Ruby时,Michael提供的快速入门链接非常有用。如果您想使用Ruby on Rails,您可以按照本教程进行操作。

If you use Cloud Shell for the deployment, to test if the server is working, specify the port you wish to connect to when you launch it:

如果您使用Cloud Shell进行部署,要测试服务器是否正常工作,请在启动时指定要连接的端口:

bundle exec rails server -p 8080

Follow the steps in the tutorial and you will be able to deploy a Ruby on Rails app on Google App Engine. Then you just have to adapt the steps to your own Rails app and you will be ready to go.

按照教程中的步骤操作,您将能够在Google App Engine上部署Ruby on Rails应用程序。然后你只需要调整你自己的Rails应用程序的步骤,你就可以开始了。

#1


0  

The quickstart link provided by Michael is useful when you are using just Ruby. If you want to use Ruby on Rails, you can follow this tutorial.

当您使用Ruby时,Michael提供的快速入门链接非常有用。如果您想使用Ruby on Rails,您可以按照本教程进行操作。

If you use Cloud Shell for the deployment, to test if the server is working, specify the port you wish to connect to when you launch it:

如果您使用Cloud Shell进行部署,要测试服务器是否正常工作,请在启动时指定要连接的端口:

bundle exec rails server -p 8080

Follow the steps in the tutorial and you will be able to deploy a Ruby on Rails app on Google App Engine. Then you just have to adapt the steps to your own Rails app and you will be ready to go.

按照教程中的步骤操作,您将能够在Google App Engine上部署Ruby on Rails应用程序。然后你只需要调整你自己的Rails应用程序的步骤,你就可以开始了。