Created
January 19, 2015 10:57
-
-
Save noomz/dc2e55bd849409ff916c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# redis-server | |
REDIS_FOUND=$(ps aux | grep redis) | |
if [ ${#REDIS_FOUND[@]} -eq 1 ] | |
then | |
echo "Neet to start redis-server" | |
cd /tmp/ && redis-server& | |
fi | |
SENTRY_FOUND=$(ps aux | grep "gunicorn.*Sentry") | |
if [ ${#SENTRY_FOUND[@]} -eq 1 ] | |
then | |
echo "Neet to start sentry server" | |
cd /tmp/ | |
~/.virtualenvs/sentry/bin/sentry --config=~/tmp/sentry.conf.py start & | |
sleep 5 | |
fi | |
SENTRY_WORKER_FOUND=$(ps aux | grep "PoolWorker") | |
if [ ${#SENTRY_WORKER_FOUND[@]} -eq 1 ] | |
then | |
echo "Neet to start sentry worker" | |
cd /tmp/ | |
~/.virtualenvs/sentry/bin/sentry --config=~/tmp/sentry.conf.py celery worker -B & | |
sleep 5 | |
fi | |
CELERY_FOUND=$(ps aux | grep "podd worker") | |
if [ ${#CELERY_FOUND[@]} -eq 1 ] | |
then | |
echo "Neet to start celery worker" | |
cd ~/Projects/PODD/podd-api/podd && | |
~/.virtualenvs/podd/bin/celery -A podd worker & | |
sleep 5 | |
fi | |
ELASTIC_FOUND=$(ps aux | grep "elasticsearch") | |
if [ ${#ELASTIC_FOUND[@]} -eq 1 ] | |
then | |
echo "Neet to start elasticsearch" | |
~/opt/elasticsearch-1.4.0/bin/elasticsearch & | |
sleep 5 | |
fi | |
NODE_FOUND=$(ps aux | grep "nodemon app.js") | |
if [ ${#NODE_FOUND[@]} -eq 1 ] | |
then | |
echo "Neet to start nodejs server" | |
cd ~/Projects/PODD/podd-dashboard/server && | |
nodemon app.js | |
sleep 5 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment