0

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?

Scott Sarnikowski
  • 1,461
  • 2
  • 14
  • 24

3 Answers3

2

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
TLama
  • 75,147
  • 17
  • 214
  • 392
DanCrews
  • 31
  • 1
1

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

heroku restart

to have your application recache the DB schema.

John Beynon
  • 37,398
  • 8
  • 88
  • 97
1

I had the same issue and posted what worked for me in response to others' similar issues:

$git push heroku master - no error messages but changes not displaying on web app

git push heroku master says "Everything up-to-date", but the app is not current

Community
  • 1
  • 1
Milena
  • 113
  • 1
  • 5