finish Heroku deploy setting

This commit is contained in:
xpleaf
2016-03-06 00:05:46 +08:00
parent 4cc52c7a47
commit 6cc375f2cc
6 changed files with 8 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
web: gunicorn manage:app
+2 -2
View File
@@ -3,11 +3,11 @@ basedir = os.path.abspath(os.path.dirname(__file__))
class Config():
DEBUG = True
# DEBUG = True
SQLALCHEMY_TRACK_MODIFICATIONS = True
# SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_RECORD_QUERIES = True
SQLALCHEMY_DATABASE_URI = os.environ.get('TEST_DATABASE_URL') or \
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'data.sqlite')
ARTICLES_PER_PAGE = 10
COMMENTS_PER_PAGE = 6
BIN
View File
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
-r requirements/common.txt
gunicorn==19.4.5
psycopg2==2.6.1
+2
View File
@@ -13,3 +13,5 @@ Werkzeug==0.11.3
wheel==0.24.0
flask-login==0.3.2
flask-moment==0.5.1
ForgeryPy==0.1
gunicorn==19.4.5
-2
View File
@@ -1,2 +0,0 @@
-r common.txt
ForgeryPy==0.1