【问题标题】:Ruby on Rails App Heroku Deployment IssueRuby on Rails 应用程序 Heroku 部署问题
【发布时间】:2016-01-06 01:28:43
【问题描述】:

我在将我的应用程序启动到 Heroku 时遇到问题。我目前正在学习 Ruby on Rails 教程第 1 章,但遇到以下错误:

 1. remote:  remote: -----> Ruby app detected remote: -----> Compiling
    Ruby/Rails remote: -----> Using Ruby version: ruby-2.0.0 remote:
    -----> Installing dependencies using bundler 1.9.7 remote:        Running: bundle install --without development:test --path
    vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: 
    You are trying to install in deployment mode after changing remote: 
    your Gemfile. Run `bundle install` elsewhere and add the remote:    
    updated Gemfile.lock to version control. remote:        You have
    added to the Gemfile: remote:        * pg (= 0.17.1) remote:       
    * rails_12factor (= 0.0.2) remote:        Bundler Output: You are trying to install in deployment mode after changing remote:       
    your Gemfile. Run `bundle install` elsewhere and add the remote:    
    updated Gemfile.lock to version control. remote:         remote:    
    You have added to the Gemfile: remote:        * pg (= 0.17.1)
    remote:        * rails_12factor (= 0.0.2) remote:  ! remote:  !    
    Failed to install gems via Bundler. remote:  ! remote:  remote:  !  
    Push rejected, failed to compile Ruby app remote:  remote: Verifying
    deploy... remote:  remote: !       Push rejected to stark-dusk-2366.

我是新手,不太了解文件结构或我应该用来解决此问题的命令。

【问题讨论】:

    标签: gem bundler railstutorial.org cedar


    【解决方案1】:

    您是否像错误所说的那样运行了 bundle install ?发生了什么? 另外,请查看 Heroku guide 以设置 Rails,这对我有很大帮助。

    【讨论】:

    • 发现我的代码没有问题。这是 Heroku 方面的事情。他们一直在进行一些更新,导致个人启动代码时出现一些问题
    猜你喜欢
    • 1970-01-01
    • 2012-05-23
    • 2019-04-01
    • 1970-01-01
    • 2016-12-25
    • 2018-06-10
    • 1970-01-01
    • 2012-09-15
    • 1970-01-01
    相关资源
    最近更新 更多