【问题标题】:Unable to deploy a ruby application in Cloudfoundry无法在 Cloudfoundry 中部署 ruby​​ 应用程序
【发布时间】:2012-09-08 00:23:00
【问题描述】:

我已准备好申请 但是当我部署时我面临一个错误 Heroku 和 Cloud Foundry 中的部署面临错误

使用的宝石是:event_calender 授权逻辑

错误:云代工

wafuser@wafuser-VirtualBox:~/Documents/backups/backupnew/ecommerce$ vmc push
Would you like to deploy from the current directory? [Yn]: y
Application Name: shiva108
Detected a Rails Application, is this correct? [Yn]: y
Application Deployed URL [shiva108.cloudfoundry.com]: 
Memory reservation (128M, 256M, 512M, 1G, 2G) [256M]: 
How many instances? [1]: 1
Create services to bind to 'shiva108'? [yN]: y
1: mongodb
2: mysql
3: postgresql
4: rabbitmq
5: redis
What kind of service?: 2
Specify the name of the service [mysql-ceaf3]: 
Create another? [yN]: n
Would you like to save this configuration? [yN]: n
Creating Application: OK
Creating Service [mysql-ceaf3]: OK
Binding Service [mysql-ceaf3]: OK
Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (192K): OK   
Push Status: OK
Staging Application 'shiva108': OK                                              
Starting Application 'shiva108': .
Error: Application [shiva108] failed to start, logs information below.

====> /logs/migration.log <====

谁能为我的问题提出解决方案

【问题讨论】:

  • 你能显示/logs/migration.log
  • 你在 db/migrations 中有多少个文件
  • 您似乎表示 event_calendar authlogic 与问题有关。如果删除这些引用,cloudfoundry 部署是否有效?这里有一些想法,1)您是否使用 docs.cloudfoundry.com/frameworks/ruby/ruby-rails-sinatra.html 的说明成功地将一个简单的应用程序部署到 cloudfoundry)? 2) 您可以在support.cloudfoundry.com/home 开票并将您的应用程序发送给我们吗?我们将进行审核,然后在此处发布答案

标签: ruby heroku ruby-on-rails-3.1 cloud-foundry


【解决方案1】:

尝试使用以下命令:

vmc logs <app-name>

这将为您提供所需的日志。

【讨论】:

    【解决方案2】:

    尝试使用此命令:

    Heroku:

    $ heroku logs
    

    云铸造:

    $ vmc files shiva108 logs/stderr.log
    

    【讨论】:

    • 您好先生,谢谢您在我尝试 cloudfoundry $ vmc 文件 shiva108 logs/stderr.log 时的回复,它给出的没有这样的目录。迈克尔·杜兰特
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-02-20
    • 1970-01-01
    • 1970-01-01
    • 2012-01-30
    • 2012-09-30
    • 2015-06-19
    • 1970-01-01
    相关资源
    最近更新 更多