远程被拒绝的主人 - >主人(预先接收挂钩拒绝)heroku

时间:2016-09-23 13:41:10

标签: ruby-on-rails heroku

我将rails代码推送到heroku时收到错误。

Counting objects: 20, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (20/20), 1.75 KiB | 0 bytes/s, done.
Total 20 (delta 15), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: !   Could not complete the action. Please try again later.
remote: 
To https://git.heroku.com/dishcuss-api.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/dishcuss-api.git'

我尝试了几种方法,包括回滚heroku和git pull,但它对我没用。

2 个答案:

答案 0 :(得分:0)

我看到了两个可能的问题解决方案:

  1. 您可能无法在Heroku服务器上运行最新的迁移。那样做heroku run rake db:migrate
  2. 另一种选择是,这是因为他们的SSL证书在几小时前不再有效;他们正在努力。

答案 1 :(得分:0)

只需在heroku上运行迁移:

heroku run bundle exec rake db:migrate

相关问题