Heroku doesn't see my changes after git push

2019-03-03 18:13发布

I am trying to deploy a new version of my app to heroku and although running it locally works, I can't see any change after I do the following:

git push heroku master

and then

heroku run rake db:migrate

There seems to be no effect. It's strange because without a model change I was able to deploy changes with just the git push command. Any thoughts?

3条回答
贪生不怕死
2楼-- · 2019-03-03 18:39

It sounds as if you might be not commiting your changes to Github first.

git add .

git commit -m "commit details here"

git push origin master

THEN

git push heroku master
查看更多
不美不萌又怎样
4楼-- · 2019-03-03 18:59

If you're pushing and then migrating you then need to do

heroku restart

to have your application recache the DB schema.

查看更多
登录 后发表回答