aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--config.cfg.tpl (renamed from config.cfg)0
-rw-r--r--manage.py4
-rw-r--r--requirements.txt1
-rw-r--r--templates/new_paste.html2
5 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 d302210..d302210 100644
--- a/config.cfg
+++ b/config.cfg.tpl
diff --git a/manage.py b/manage.py
index c1e2990..ccccf91 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=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 %}
bgstack15