From cdee11973d80273e6114121d02361bf958418765 Mon Sep 17 00:00:00 2001 From: su27 Date: Wed, 20 Jan 2016 18:38:59 +0800 Subject: some change --- .gitignore | 4 ++++ config.cfg | 4 ---- config.cfg.tpl | 4 ++++ manage.py | 4 +++- requirements.txt | 1 + 5 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 config.cfg create mode 100644 config.cfg.tpl diff --git a/.gitignore b/.gitignore index e145bb0..c408181 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ build dist .DS_Store +.env +env +pastebin_uwsgi.ini +config.cfg diff --git a/config.cfg b/config.cfg deleted file mode 100644 index 50cc812..0000000 --- a/config.cfg +++ /dev/null @@ -1,4 +0,0 @@ -DEBUG=False -SQLALCHEMY_DATABASE_URI='sqlite:///pastebin.db' -SECRET_KEY='development-key' -JUGGERNAUT_DRIVER='http://localhost:8080/application.js' diff --git a/config.cfg.tpl b/config.cfg.tpl new file mode 100644 index 0000000..b4daf07 --- /dev/null +++ b/config.cfg.tpl @@ -0,0 +1,4 @@ +DEBUG=False +SQLALCHEMY_DATABASE_URI='sqlite:///pastebin.db' +SECRET_KEY='dev-key' +JUGGERNAUT_DRIVER='http://localhost:8080/application.js' diff --git a/manage.py b/manage.py index c1e2990..cab41eb 100644 --- a/manage.py +++ b/manage.py @@ -1,4 +1,4 @@ -from flask.ext.script import Manager +from flask.ext.script import Manager, Server from pastebin import app, db @@ -16,6 +16,8 @@ def dropdb(): """Drops all database tables.""" db.drop_all() +manager.add_command('server', Server(host='0.0.0.0', port=8000)) + if __name__ == '__main__': manager.run() diff --git a/requirements.txt b/requirements.txt index 2c7b8f6..0f59a86 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ Flask-OAuth Flask-SQLAlchemy Flask-Script juggernaut +PyMySQL -- cgit