Skip to content

Commit f0f63b6

Browse files
committed
Prepare for Heroku
1 parent 08d369f commit f0f63b6

File tree

8 files changed

+11
-18
lines changed

8 files changed

+11
-18
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ nosetests.xml
4444

4545
# Virtual environment
4646
venv
47+
48+
.env

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn manage:app

README.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,9 @@ The application uses Python and Flask for the backend.
2929
```
3030
createdb circulate
3131
pip install -r requirements/dev.txt
32-
python manage.py db init
33-
python manage.py db migrate
34-
python manage.py db upgrade
32+
python manage.py deploy
3533
```
3634

37-
then:
38-
39-
```
40-
python mange.py shell
41-
```
42-
43-
and run the following command to set up Roles:
44-
45-
> Role.insert_roles()
46-
4735
## Tests
4836

4937
The app runs various tests:

manage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def profile(length=25, profile_dir=None):
6666
@manager.command
6767
def deploy():
6868
"""Run deployment tasks."""
69-
from flask.ext.migrate import upgrade
69+
from flask_migrate import upgrade
7070
from app.models import Role, User
7171

7272
# migrate database to latest revision

requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Production requirements for Heorku
2+
# use requirements/dev.txt for local development and testing
3+
-r requirements/common.txt
4+
Flask-SSLify==0.1.5
5+
gunicorn==19.7

requirements/heroku.txt

-3
This file was deleted.

requirements/prod.txt

-1
This file was deleted.

runtime.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.6.0

0 commit comments

Comments
 (0)