diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | config.cfg.tpl (renamed from config.cfg) | 0 | ||||
-rw-r--r-- | manage.py | 4 | ||||
-rw-r--r-- | requirements.txt | 1 | ||||
-rw-r--r-- | templates/new_paste.html | 2 |
5 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 d302210..d302210 100644 --- a/config.cfg +++ b/config.cfg.tpl @@ -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=9200)) + 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 diff --git a/templates/new_paste.html b/templates/new_paste.html index 31bf41a..658acfb 100644 --- a/templates/new_paste.html +++ b/templates/new_paste.html @@ -3,7 +3,7 @@ {% block body %} <h2>New Paste</h2> <form action="" method=post> - <div class=code><textarea name=code cols=60 rows=18>{{ parent.code }}</textarea></div> + <div class=code><textarea name=code cols=60 rows=12>{{ parent.code }}</textarea></div> <p><input type=submit value="New Paste"> </form> {% endblock %} |