forked from smartshare-labs/django-serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 682 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 682 Bytes
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
init:
# If you don't have alreaduy serverless installed, uncomment the following line
# sudo npm install -g serverless
npm i
sls plugin install -n serverless-python-requirements --stage dev
make reset
start:
python -m local_server.app
reset:
docker-compose down -v
docker-compose up -d
sleep 5
make migrate
flush:
python manage.py flush
flush-live:
python manage.py flush live
migrations:
python manage.py makemigrations
migrate:
python manage.py migrate
migrate-live:
python manage.py migrate live
deploy-dev:
pipenv run pip freeze > requirements.txt
sls deploy --stage dev
deploy-prod:
pipenv run pip freeze > requirements.txt
sls deploy --stage prod