Last active
August 29, 2015 14:09
-
-
Save gor-sg/8d7ac4bb30d7697610f0 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
| #!/bin/sh | |
| PROCFILE="mysql: mysqld | |
| elasticsearch: elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml | |
| redis: redis-server /usr/local/etc/redis.conf | |
| sidekiq: bundle exec sidekiq -C './config/sidekiq.yml' | |
| app: bundle exec rails s" | |
| ps aux | grep '[m]ysql\|[e]lasticsearch\|[r]edis\|[r]ails\|[s]idekiq\|[f]oreman' | awk '{print $2}' | xargs kill SIGTERM | |
| echo "$PROCFILE" > ./tmp/Procfile | |
| foreman start --procfile=./tmp/Procfile --root=$(pwd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment