2014-07-24 37 views
0

我试图将Ruby on Rails应用程序部署到anynines.com服务器。这是基于云代工。他们在这里提供了一个示例应用程序:https://github.com/anynines/simple_rails_app 我已成功部署。当我尝试部署一个'Hello World'应用程序时,它使用内置服务器('rails server'命令)在本地工作,但我失败了(错误与稍后介绍的相同)。在这一点上,我应该给你一些关于开发环境的信息: Ruby v。1.9.3。 Rails v。4.1.1。 在Windows机器上开发。将Rails应用程序部署到服务器云代工厂

然后我试着从零开始创建一个带有“rails new deploytest”的新默认应用程序,它向您显示“欢迎登录”屏幕。然后,我创建了一个manifest.yml文件是这样的:

applications: - name: deploytest memory: 512m instances: 1 host: deploytest domain: de.a9sapp.eu path: .

然后我执行的“CF推”命令。文件被上传,builder运行,最后控制台promted ----->上传液滴(34M)。但在那之后是happend的唯一的事情是这样的:

0 of 1 instances running, 1 down 0 of 1 instances running, 1 starting 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down

,直到超时。日志文件这样说:

2014-07-24T22:51:20.73+0200 [DEA] OUT Removing crash for app with id 89eb57a 4-f602-4809-9255-c9dd5944a4c1 2014-07-24T22:51:20.73+0200 [DEA] OUT Stopping app instance (index 0) with guid 89eb57a4-f602-4809-9255-c9dd5944a4c1 2014-07-24T22:51:20.73+0200 [DEA] OUT Stopped app instance (index 0) with guid 89eb57a4-f602-4809-9255-c9dd5944a4c1 2014-07-24T22:51:55.05+0200 [DEA] OUT Starting app instance (index 0) with guid 89eb57a4-f602-4809-9255-c9dd5944a4c1 2014-07-24T22:51:58.80+0200 [API] OUT App instance exited with guid 89eb57a4-f602-4809-9255-c9dd5944a4c1 payload: {"cc_partition"=>"default", "droplet"=>"89eb57a4-f602-4809-9255-c9dd5944a4c1", "version"=>"23663797-8b42-44e7-8913-439f1a0553bd","instance"=>"69928ad0f7b54a4aae4ca70f14532d1", "index"=>0, "reason"=>"CRASHED", "exit_status"=>127, "exit_description"=>"appinstance exited", "crash_timestamp"=>1406235118}

我在谷歌上搜索了几个小时解决这个问题,但是我我以前不明白了。我试图完全删除SQL信息。我还根据示例项目将database.yml和Gemfile更改为mysql,并在服务器内使用mysql-service。

我看不到任何工作之间和生成的'默认'的应用程序之间的差异。当然,我可以把样本作为基础,但我想从头开始,知道自己做错了什么。请告诉我那个秘密,非常感谢。

P.S:这是什么 'CF应用deploytest' 提示:

requested state: started instances: 0/1 usage: 512M x 1 instances urls: deploytest.de.a9sapp.eu state since cpu memory disk down 2014-07-24 11:26:10 PM 0.0% 0 of 0 0 of 0

回答

相关问题