Skip to content

Instantly share code, notes, and snippets.

@shey
Created April 4, 2024 16:30
Show Gist options
  • Save shey/04acda7f403f0ea40ecf09ecf439399a to your computer and use it in GitHub Desktop.
Save shey/04acda7f403f0ea40ecf09ecf439399a to your computer and use it in GitHub Desktop.
.PHONY: help
.DEFAULT_GOAL := help
help: ## Displays this help message.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: deploy
deploy: ## Deploy the app to the 'staging' environment
bundle exec cap staging deploy
.PHONY: prod-deploy
prod-deploy: ## Deploy the app to the 'production' environment
BRANCH=main bundle exec cap production deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment