Sha256: f536d03ef858e3dffb8be47b04f512a6ff42e0f2b8a3f5093844d389db6fb369
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
-include .env export verify-environment: ifndef VIRTUAL_HOST @$(error VIRTUAL_HOST must be defined in environment) endif ifndef LISTEN_PORT @$(error LISTEN_PORT must be defined in environment) endif compose_base:=env HOST_UID=$(shell id -u) \ DOCKER_ORGANIZATION=%%ORGANIZATION%% \ DOCKER_REPOSITORY=%%REPOSITORY%%:%%VERSION%% \ docker-compose \ -p %%REPOSITORY%% \ -f docker-compose.yml compose:=${compose_base} -f docker-compose.production.yml -f docker-compose.override.yml .PHONY: deploy deploy: @echo "Deploying application to Docker swarm..." @${compose} config | docker stack deploy -c - %%REPOSITORY%% .PHONY: stop stop: @echo "Stopping containers..." @${compose} down .PHONY: start start: @echo "Launching application..." @${compose} up -d --scale app=$${instances:-1} .PHONY: config config: @${compose} config .PHONY: pull pull: @${compose} pull .PHONY: logs logs: @${compose} logs -f .PHONY: migrate migrate: @${compose} run --rm app bundle exec rake db:migrate .PHONY: compose compose: @echo ${compose}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
orchestration-0.3.7 | lib/orchestration/templates/deploy.mk.erb |
orchestration-0.3.6 | lib/orchestration/templates/deploy.mk.erb |