public
Created

Update Heroku stack and change repository URL

  • Download Gist
heroku_change_stack.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12
# Create a new stack
heroku create --stack cedar
 
# it will reply something like this
# Creating stark-moon-1526... done, stack is cedar
# http://stark-moon-1526.herokuapp.com/ | git@heroku.com:stark-moon-1526.git
 
# Change repository URL
git remote set-url heroku git@heroku.com:stark-moon-1526.git
 
# Push your repository
git push heroku master

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.