Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJack Carr
7,329 PointsPushing to Heroku
Everytime I make a change to my app and I want to push it to heroku it seems to update everything as if I am doing a first time install.
Am I using the wrong command "git push heroku master"
WHat command should I be using?
Thanks in advance!
5 Answers
Ian Lunn
4,558 PointsI'm unfamiliar with Heroku but I use Git with GitHub so it should be the same. git push just sends whatever you committed using the git add and git commit commands, so I suspect you're going wrong with one of those rather than git push.
Can you show us the commands you are using prior to git push?
Jack Carr
7,329 Pointsgit add .
git commit -m "Text Here"
git push origin master
I was under the impression that I updated heroku the same way :/
Sara Miller
7,954 PointsNot sure if there's a way around it, Jack. Unless there's a bug you need to fix, you might consider keeping a working version locally (I keep old versions in their own branches in Git just in case) and pushing to Heroku only when you're ready for a larger version release.
I think that's just the way Heroku operates: they install everything each time you push. I think it's something to do with their versioning/rollback system (but I could be wrong).
Jack Carr
7,329 Points@Sara OK thanks for clearing that up. I thought I was doing something wrong. Just seemed strange it would do a full install on every push.
What you said makes sense though. Larger pushes only.
Thanks a bunch!
Jason Seifer
Treehouse Guest TeacherThat's correct, Sara!