diaspora/script/server
2010-09-25 09:50:29 -04:00

13 lines
267 B
Bash
Executable file

#!/bin/bash
# Check if Mongo is running
if ! ps ax | grep -v grep | grep mongod >/dev/null
then
echo "Mongod not started"
else
mkdir -p -v log/thin/
bundle exec ruby ./script/websocket_server.rb&
bundle exec thin -p 80 -a 192.168.0.191 start $@
fi