File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1717
1818<br />
1919
20+ ## ✨ Deploy on HEROKU
21+
22+ > Update Codebase & Dependencies
23+
24+ - add ` django-heroku ` to ` requirements.txt `
25+ - add ` Procfile ` in the root of the project
26+ - Edit ` core/settings.py ` to include the following snippet (at the end of the file):
27+
28+ ``` python
29+ import django_heroku
30+ django_heroku.settings(locals ())
31+ ```
32+
33+ <br />
34+
35+ > Execute in the terminal (ROOT of the project)
36+
37+ ``` bash
38+ $ heroku login # This will open a browser
39+ $ heroku create # This will create the app on HEROKU (visible on the dashboard)
40+ $ git push heroku master # Compile & push the app LIVE
41+ $ heroku run python manage.py migrate # Migrate the DB
42+ $ heroku open # Open the new app in the Browser
43+ ```
44+
45+ <br />
46+
2047![ Material Kit - Starter generated by AppSeed.] ( https://user-images.githubusercontent.com/51070104/167396765-c88b7a95-155f-4236-8691-7b80fa2d9cd9.png )
2148
2249<br />
You can’t perform that action at this time.
0 commit comments