16 lines
367 B
Bash
Executable file
16 lines
367 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/
|
|
#force AGPL
|
|
tar cf ../_source.tar --exclude='*.yml' --exclude='public/uploads' *
|
|
mv ../_source.tar public/source.tar
|
|
bundle exec ruby ./script/websocket_server.rb&
|
|
bundle exec thin start $@
|
|
fi
|
|
|