BIN := ./node_modules/.bin
# NODE_ENV = how the app is running
NODE_ENV ?= $(shell if [ "$(CIRCLECI)" = "true" ]; then echo "production"; else echo "development"; fi)
# APP_ENV = where the app is running
APP_ENV ?= $(shell if [ "$(CIRCLE_BRANCH)" = "master" ]; then echo "production"; elif [ "$(CIRCLE_BRANCH)" = "staging" ]; then echo "stage"; elif [ "$(CIRCLECI)" = "true" ]; then echo "custom"; else echo "development"; fi)

get-app-env:
	@echo $(APP_ENV)
