Skip to content

Instantly share code, notes, and snippets.

@noqcks
Created October 3, 2018 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noqcks/e31ce8334fa24365c7e30c74531e4638 to your computer and use it in GitHub Desktop.
Save noqcks/e31ce8334fa24365c7e30c74531e4638 to your computer and use it in GitHub Desktop.
Development setup
.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