Skip to content
Browse files

I want to sleeep

  • Loading branch information...
1 parent 4b047e1 commit 5ac7b9b6f496ca9359936a0e8ccd733125f61e13 @ciudilo ciudilo committed
Showing with 7 additions and 3 deletions.
  1. +1 −1 scripts/start.sh
  2. +6 −2 server.py
View
2 scripts/start.sh
@@ -4,7 +4,7 @@ cd /opt/shoutfb
. /opt/shoutfb/shoutfb/bin/activate
-python test.fcgi &> shoutd.log &
+python server.fcgi 1 2 3 &> shoutd.log &
echo $! > /tmp/shoutd.pid
View
8 server.py
@@ -64,7 +64,7 @@ def index():
def getstaus():
return 'We are on!'
-def main():
+def init():
# Random words!
app.words = open("/usr/share/dict/words").readlines()
@@ -78,10 +78,14 @@ def main():
pusher.key = sys.argv[2];
pusher.secret = sys.argv[3];
app.p = pusher.Pusher()
- persist()
+ #persist()
+
+def main():
+ init()
app.run(debug=True, host='0.0.0.0')
def create_app():
+ init()
return app
if __name__ == "__main__":

0 comments on commit 5ac7b9b

Please sign in to comment.
Something went wrong with that request. Please try again.