Skip to content

Commit 486b734

Browse files
Update README.md
1 parent 179db15 commit 486b734

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,33 @@
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 />

0 commit comments

Comments
 (0)