Navigation Menu

Skip to content

Commit

Permalink
I want to sleeep
Browse files Browse the repository at this point in the history
  • Loading branch information
ciudilo committed Sep 20, 2012
1 parent 4b047e1 commit 5ac7b9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/start.sh
Expand Up @@ -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

8 changes: 6 additions & 2 deletions server.py
Expand Up @@ -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()

Expand All @@ -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__":
Expand Down

0 comments on commit 5ac7b9b

Please sign in to comment.