bansho/Makefile
2015-05-05 14:45:02 -04:00

30 lines
831 B
Makefile

all: build daemon
clean: kill remove
build:
sudo docker build -t bansho .
rebuild:
sudo docker build --no-cache -t bansho .
interactive:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -v $(shell pwd)/app:/opt/bansho/dist -e BANSHO_ENV=false -i -t --name bansho bansho bash
daemon:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -v $(shell pwd)/app:/opt/bansho/dist -e BANSHO_PROD=false -d -t --name bansho bansho
grunt development:surveil
production:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -d -t --name bansho bansho
staging:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -v $(shell pwd)/dist:/opt/bansho/dist -e BANSHO_PROD=false -d -t --name bansho bansho
grunt staging:surveil
kill:
sudo docker kill bansho
remove:
sudo docker rm -f bansho