Advertisement
mhrabbi

Heroku Deploy Script

Jan 13th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. 1. heroku login
  2. 2. git init (add,commit)
  3. 3. heroku create appname
  4. 4. heroku git:remote -a appname
  5. 5. pip install gunicorn
  6. 6. touch PROCFILE
  7. 7. web: gunicorn appname.wsgi (inside Procfile)
  8. 8. pip freeze > requirements.txt
  9. 9. git push heroku master
  10.  
  11. ---Static--
  12. # STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') (inside settings.py)
  13.  
  14. #whitenoise
  15.  
  16. # Allowe host setting
  17.  
  18. #migrate/commit/push
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement