-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommands.txt
40 lines (36 loc) · 882 Bytes
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
1 - venv
python3 -m venv venv
source venv/bin/activate
pip3 install django
make project
django-admin startproject ddah
2 - Install additional packages
- psycopg2
gunicorn
django-heroku
whitenoise
pip3 install psycopg2 gunicorn django-heroku whitenoise
3 - create runtime.txt
python-3.7.9
4 - Procfile
release
web
5 - Generate requirements.txt
pip3 freeze > requirements.txt
6 - Github repo
git init
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/dmstyx/ddah.git
git push -u origin main
git status
git add .
git commit -m "added config files"
git push
7 - Create app on heroku
Create app
8 - create DB on heroku
database
settings.py
9 - Adjust settings for Posgres DB
10- Adjust settings for static files