heroku: bash: bundle: command not found

前端 未结 2 1247
轻奢々
轻奢々 2021-01-18 07:07

I am porting a Heroku app from Aspen to Cedar stack at Heroku, following their instructions.

I\'m at the last deploy step. I get this error:

    20         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 07:45

    I had the same issue and I solved it by setting the correct heroku config variables

    $ heroku config
    === xxxx Config Vars
    DATABASE_URL:                  postgres://(...)
    GEM_PATH:                      vendor/bundle/ruby/1.9.1
    HEROKU_POSTGRESQL_CRIMSON_URL: postgres://(...)
    LANG:                          en_US.UTF-8
    PATH:                          bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
    PGBACKUPS_URL:                 https://(...)
    RACK_ENV:                      production
    RAILS_ENV:                     production
    

    you can create an empty rails app, push it to heroku and check the variables it automatically set, then copy (and adapt) them to your application

提交回复
热议问题