Created
October 3, 2018 14:31
-
-
Save noqcks/e31ce8334fa24365c7e30c74531e4638 to your computer and use it in GitHub Desktop.
Development 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
.PHONY: app api chat api_worker setup | |
setup: | |
brew install yarn | |
brew install rabbitmq | |
brew install mongodb | |
brew install redis | |
app: | |
cd app/ && yarn | |
cd app/ && yarn start | |
chat: | |
cd chat/ && yarn | |
cd chat/ && yarn start | |
api: | |
cd api/ && pip install -r requirements.txt | |
brew services start rabbitmq | |
brew services start redis | |
brew services start mongodb | |
cd api/ && gunicorn app:app -b 0.0.0.0:8000 -w 1 --reload -k gevent --log-level debug --capture-output --error-logfile - | |
api_worker: | |
cd api/ && pip install -r requirements.txt | |
brew services start rabbitmq | |
brew services start redis | |
brew services start mongodb | |
cd api/ && celery worker -A queue_conf -c 4 -l DEBUG -Q emit,high,low,normal,process-message -n worker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment