lib/potassium/assets/Makefile.erb in potassium-5.2.3 vs lib/potassium/assets/Makefile.erb in potassium-6.0.0

- old
+ new

@@ -1,50 +1,24 @@ -PROJECT ?= <%= get(:underscorized_app_name) %> -DOCKER_COMPOSE_FILE ?= docker-compose.yml +PROJECT ?= <%= get(:dasherized_app_name) %> -DOCKER_COMPOSE_ARGS ?= -p $(PROJECT) -f $(DOCKER_COMPOSE_FILE) - SHELL := /bin/bash run: help BOLD ?= $(shell tput bold) NORMAL ?= $(shell tput sgr0) help: - @echo Install dependencies: - @echo " ${BOLD}make setup${NORMAL}" + @echo "Generate a backup in the environment (staging|production) database:" + @echo " ${BOLD}make backup-<environment>${NORMAL}" @echo "" - @echo Runing the services like mysql: - @echo " ${BOLD}make services-up${NORMAL}" + @echo "Copy latest database backup from the environment (staging|production) to local database:" + @echo " ${BOLD}make restore-from-<environment>${NORMAL}" @echo "" - @echo "Reset the environment (rm mysql db):" - @echo " ${BOLD}make services-down${NORMAL}" - @echo "" -setup: - bin/setup - -services: services-up - -services-ps: - docker-compose $(DOCKER_COMPOSE_ARGS) ps - -services-up: - docker-compose $(DOCKER_COMPOSE_ARGS) up -d - -services-stop: - docker-compose $(DOCKER_COMPOSE_ARGS) stop - -services-down: - docker-compose $(DOCKER_COMPOSE_ARGS) down --volumes - -services-logs: - docker-compose $(DOCKER_COMPOSE_ARGS) logs -f - services-port: @set -o pipefail; \ - docker-compose $(DOCKER_COMPOSE_ARGS) port ${SERVICE} ${PORT} 2> /dev/null | cut -d':' -f2 || echo ${PORT} + docker-compose port ${SERVICE} ${PORT} 2> /dev/null | cut -d':' -f2 || echo ${PORT} backup-staging: ROLE=staging backup-production: ROLE=production backup-%: @echo Capturing $(ROLE)....