forked from djangopackages/djangopackages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (38 loc) · 1.43 KB
/
Makefile
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
41
42
43
44
45
46
# Some helpful utility commands.
all:
heroku pgbackups:capture --expire
git push heroku master
heroku run python manage.py syncdb --noinput --settings=settings.heroku
heroku run python manage.py migrate --settings=settings.heroku
heroku run python manage.py collectstatic --noinput --settings=settings.heroku
deploy:
heroku pgbackups:capture --expire
git push heroku master
heroku run python manage.py migrate searchv2 --settings=settings.heroku
style:
git push heroku master
heroku run python manage.py collectstatic --noinput --settings=settings.heroku
restoredata:
heroku pgbackups:capture --expire
curl -o -k latest.dump `heroku pgbackups:url`
dropdb oc
createdb oc
pg_restore --clean --no-acl --no-owner -d oc latest.dump
createsite:
heroku create --stack cedar
heroku addons:add memcachier:dev
heroku addons:add sendgrid:starter
heroku addons:add heroku-postgresql:dev
heroku addons:add pgbackups
git push heroku master
heroku ps:scale web=1
heroku run python manage.py syncdb --noinput --settings=settings.heroku
heroku run python manage.py migrate --settings=settings.heroku
shell:
heroku run python manage.py shell_plus --settings=settings.heroku
runcron:
heroku run python manage.py pypi_updater --settings=settings.heroku
heroku run python manage.py repo_updater --settings=settings.heroku
heroku run python manage.py searchv2_build --settings=settings.heroku
test:
python manage.py test --settings=settings.test