Advertisement
Venciity

Heroku notes

Mar 24th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. Two main concepts:
  2. * dyno
  3. * smart container that know how to deploy and run specific technologies such as a node server or Java JVM
  4. * they are like small lightweight server containers
  5. * can be scaled up and down usin the Heroku tools
  6. * add-ons
  7. * allow you to add other tools and platforms to your dynos
  8. * examples:
  9. * databases (Postgres, Mysql)
  10. * logging aggregators
  11. * other tools
  12.  
  13. Heroku Buildpacks
  14. * the dynos are configured and set up using Heroku Buildpacks
  15. * buildpacks are set of scripts and files that act kind like a giant application compiler and build tool
  16. * they take all of your raw application files and prepare them to be usable as a final application product
  17.  
  18. Most used commands:
  19. heroku login
  20. authenticates you to heroku
  21. heroku create
  22. creates an empty container space
  23. heroku apps
  24. list all apps on your account
  25. heroku logs -a <app>
  26. logs output for your app
  27. heroku logs -a <app> -- tail
  28. logs output for your app realtime
  29. heroku config
  30. configure environment
  31.  
  32. Procfile
  33. specifies the command that should run the web dyno
  34. heroku use it to determine what web server to deploy our app
  35. must be placed at the root at the project
  36. <process type>: <command>
  37. process types:
  38. web - web server command
  39. worker - background jobs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement