diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | config.cfg.tpl (renamed from config.cfg) | 2 | ||||
-rw-r--r-- | manage.py | 4 | ||||
-rw-r--r-- | requirements.txt | 1 |
4 files changed, 9 insertions, 2 deletions
@@ -5,3 +5,7 @@ build dist .DS_Store +.env +env +pastebin_uwsgi.ini +config.cfg diff --git a/config.cfg b/config.cfg.tpl index 50cc812..b4daf07 100644 --- a/config.cfg +++ b/config.cfg.tpl @@ -1,4 +1,4 @@ DEBUG=False SQLALCHEMY_DATABASE_URI='sqlite:///pastebin.db' -SECRET_KEY='development-key' +SECRET_KEY='dev-key' JUGGERNAUT_DRIVER='http://localhost:8080/application.js' @@ -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 |