Created
February 3, 2016 08:43
-
-
Save joar/cd2156f37ca8a1ad11c9 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
| KIOSK_SETTINGS=bolist.settings.kiosk.local_joar | |
| SHOP_SETTINGS=bolist.settings.shop.local_joar | |
| RENTAL_SETTINGS=bolist.settings.rental.local_joar | |
| DOCKER_RUN=docker run --rm -it --restart=no | |
| .PHONY: run-rabbitmq | |
| run-rabbitmq: | |
| $(DOCKER_RUN) \ | |
| -p 5672:5672 \ | |
| rabbitmq:3-management | |
| .PHONY: run-pg | |
| run-pg: | |
| $(DOCKER_RUN) \ | |
| --cpuset-cpus 0,1 \ | |
| -p 15432:5432 \ | |
| -e POSTGRES_USER=bolist \ | |
| -v /home/joar/git/bolist-shop/data/pg:/var/lib/postgresql/data \ | |
| postgres | |
| .PHONY: run-es | |
| run-es: | |
| $(DOCKER_RUN) \ | |
| -p 9200:9200 \ | |
| -v /home/joar/git/bolist-shop/data/es:/usr/share/elasticsearch/data \ | |
| elasticsearch:1.0.3 | |
| .PHONY: run-celery-flower | |
| run-celery-flower: | |
| env DJANGO_SETTINGS_MODULE=$(SHOP_SETTINGS) \ | |
| celery -A bolist flower --inspect | |
| .PHONY: run-celery-worker | |
| run-celery-worker: | |
| env DJANGO_SETTINGS_MODULE=$(SHOP_SETTINGS) \ | |
| celery -A bolist worker -c 3 \ | |
| -Q celery,store_async,store_synchronous,price_import,page | |
| .PHONY: run-rental | |
| run-rental: | |
| env DJANGO_SETTINGS_MODULE=$(RENTAL_SETTINGS) \ | |
| python manage.py runserver 0.0.0.0:8002 | |
| .PHONY: run-kiosk | |
| run-kiosk: | |
| env DJANGO_SETTINGS_MODULE=$(KIOSK_SETTINGS) \ | |
| python manage.py runserver 0.0.0.0:8001 | |
| .PHONY: run-shop | |
| run-shop: | |
| env DJANGO_SETTINGS_MODULE=$(SHOP_SETTINGS) \ | |
| python manage.py runserver 0.0.0.0:8000 | |
| .PHONY: run-rental-uwsgi | |
| run-rental-uwsgi: | |
| env DJANGO_SETTINGS_MODULE=$(RENTAL_SETTINGS) \ | |
| uwsgi --http :8004 --wsgi-file bolist/wsgi.py | |
| .PHONY: run-shop-uwsgi | |
| run-shop-uwsgi: | |
| env DJANGO_SETTINGS_MODULE=$(SHOP_SETTINGS) \ | |
| uwsgi --http :8004 --wsgi-file bolist/wsgi.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment