push rails app to heroku

后端 未结 8 1604
慢半拍i
慢半拍i 2020-12-15 05:54

I am trying to push a rails application to heroku.

When I get to the last step:

git push heroku master

It doesn\'t work and gives m

8条回答
  •  生来不讨喜
    2020-12-15 06:40

    Here's the answer I got from Heroku and it worked for me (after trying different pg gems, adapters, and everything else on the 10 other posts about this)

    1) add the line: gem 'pg' to your Gemfile.

    2) Run the command bundle install to install the gem into your bundle.

    3) Stage the Gemfile and Gemfile.lock changes: git add Gemfile Gemfile.lock

    4) Commit the changes: git commit -m "Install the pg gem"

    5) Redeploy to heroku: git push heroku master

提交回复
热议问题