Advertisement
Guest User

QAZ

a guest
Jul 12th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. 1 - Download Heroku CLI
  2. https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz
  3.  
  4. 2 - Login to Heroku
  5. heroku login
  6.  
  7. 3 - Create a new app
  8. heroku create
  9.  
  10. 4 - Login to heroku docker registry
  11. docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
  12.  
  13. 5 - Tag image, (after docker build .)
  14. docker tag 6d4abd9dc0b1 registry.heroku.com/[[HEROKU-APP-NAME-RETURNED-BY-CREATE]]/web
  15.  
  16. 5a - You can test the image with live-reload enabled
  17. docker run -p 8080:8080 -p 80:80 -it -v /home/tallica/Docker/HerokuApp/app/:/srv/app cf3ad037b039
  18.  
  19.  
  20. 6 - Push and enjoy
  21. docker push registry.heroku.com/[[TAG]]
  22.  
  23.  
  24. Tallica
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement