Can Push to Heroku But Can't Run Migration
-
09-07-2021 - |
Domanda
I can push a Rails app to Heroku with ...
git push heroku
but when I try to migrate with ...
heroku run rake db:migrate
I get ...
Running rake db:migrate attached to terminal... failed
! You do not have access to the app my-app-name-1234.
Edit: my .git/config contains ...
[remote "heroku"]
url = git@heroku.com:young-mist-1198.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Any ideas? Things look reasonable on the Heroku side and it seems like if my ssh key were bad, it wouldn't even let me push.
Soluzione
OK, I figured it out and in case it helps someone else ...
heroku auth:login
somehow I was not authorized and just needed to re-login.
Altri suggerimenti
try this
heroku run bash --app appname
heroku run rake db:migrate
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow