Last active
January 9, 2019 07:58
-
-
Save Shoeboxam/4b507fc9d86611f8ca71dc3a42b801cf to your computer and use it in GitHub Desktop.
TwoRavens automated environment setup
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/bash | |
| # On Ubuntu, I installed Redis with apt. It autostarts and requires `/etc/init.d/redis-server stop` to kill | |
| # disable autostart with this: `sudo update-rc.d redis-server disable` | |
| # The config file referenced in `fab redis_run` doesn't exist; I just start redis explicitly | |
| cd ~/TwoRavens/ | |
| . `which virtualenvwrapper.sh` | |
| workon 2ravens | |
| : $(fab celery_restart) | |
| gnome-terminal --tab -- /bin/bash -c 'echo -ne "\033]0;django\007"; fuser -k 8080/tcp; fab run_with_ta2' | |
| gnome-terminal --tab -- /bin/bash -c 'echo -ne "\033]0;ta2\007"; fab run_ta2_featurelabs_with_config:2' | |
| gnome-terminal --tab -- /bin/bash -c 'echo -ne "\033]0;celery\007"; fab celery_run_with_ta2' | |
| gnome-terminal --tab -- /bin/bash -c 'echo -ne "\033]0;rook\007"; fuser -k 8000/tcp; fab run_rook' | |
| gnome-terminal --tab -- /bin/bash -c 'echo -ne "\033]0;mongod\007"; mongod --shutdown; mongod' | |
| gnome-terminal --tab -- /bin/bash -c 'echo -ne "\033]0;redis\007"; redis-cli stop; redis-server' | |
| cd .. | |
| deactivate 2ravens |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment