aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--config.cfg.tpl (renamed from config.cfg)2
-rw-r--r--manage.py4
-rw-r--r--requirements.txt1
4 files changed, 9 insertions, 2 deletions
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.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'
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
bgstack15