This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d80bc1c
commit af850ec
Showing
49 changed files
with
1,855 additions
and
1,572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
web1: gunicorn -b 0.0.0.0:$PORT main_old:app --log-file=- --preload --env FLASK_ENV=default --timeout 10 | ||
web: gunicorn -b 0.0.0.0:$PORT main:app --log-file=- | ||
#release: python manage.py create_db | ||
|
||
downgrade: python manage.py db downgrade | ||
init: python manage.py db init | ||
migrate: python manage.py db migrate | ||
upgrade: python manage.py db upgrade | ||
|
||
create_db: python manage.py create_db | ||
drop_db: python manage.py drop_db | ||
reset_db: python manage.py reset_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
web: python main.py runserver 0.0.0.0:5000 | ||
|
||
downgrade: python manage.py db downgrade | ||
init: python manage.py db init | ||
migrate: python manage.py db migrate | ||
upgrade: python manage.py db upgrade | ||
release: python manage.py db upgrade | ||
|
||
create_db: python manage.py create_db | ||
drop_db: python manage.py drop_db | ||
reset_db: python manage.py reset_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
def register(app): | ||
from .views import blueprint | ||
|
||
from ..utils import replace | ||
app.register_blueprint(blueprint, url_prefix='/{}'.format(replace(__name__, 'app.', 'api/'))) | ||
from .views import blueprint | ||
from ..utils import replace | ||
|
||
#return app | ||
def register(app): | ||
app.register_blueprint(blueprint, url_prefix='/{}'.format(replace(__name__, 'app.', 'api/'))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.