aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsudan <sudan@douban.com>2016-01-25 19:03:00 +0800
committersudan <sudan@douban.com>2016-01-25 19:03:00 +0800
commit459e96e906746e8ca2fb4e33235c4576f2e01541 (patch)
treefa5fa62ebf195118af9340c23b4d2e9d5e31a77a
parentsmaller font (diff)
downloadstackbin-459e96e906746e8ca2fb4e33235c4576f2e01541.tar.gz
stackbin-459e96e906746e8ca2fb4e33235c4576f2e01541.tar.bz2
stackbin-459e96e906746e8ca2fb4e33235c4576f2e01541.zip
remove gunicorn
-rw-r--r--Makefile11
-rw-r--r--manage.py2
-rwxr-xr-xserve.sh3
3 files changed, 2 insertions, 14 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 54bc12a..0000000
--- a/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-export PYTHONWARNINGS?=ignore
-
-reloadgunicorn:
- cat var/app.pid | xargs kill -HUP
-
-stopgunicorn:
- cat var/app.pid | xargs kill -SIGTERM
-
-clean_pyc:
- @find `pwd` \( -name '*.pyc' -o -name '*.ptlc' \) -type f -delete
-
diff --git a/manage.py b/manage.py
index 30f5ea5..ec02b06 100644
--- a/manage.py
+++ b/manage.py
@@ -1,4 +1,5 @@
from flask.ext.script import Manager, Server
+from flask.ext.script.commands import Clean
from pastebin import app, db
manager = Manager(app)
@@ -16,6 +17,7 @@ def dropdb():
db.drop_all()
manager.add_command('server', Server(host='0.0.0.0', port=9200))
+manager.add_command("clean", Clean())
if __name__ == '__main__':
diff --git a/serve.sh b/serve.sh
deleted file mode 100755
index fbc0f55..0000000
--- a/serve.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-gunicorn -D -w8 --bind unix:/tmp/flask-pastebin.sock pastebin:app -p var/app.pid --access-logfile var/out.log --error-logfile var/error.log
bgstack15