Add makefile
This commit is contained in:
17
Makefile
Normal file
17
Makefile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
|
||||||
|
.PHONY: deploy
|
||||||
|
deploy:
|
||||||
|
rsync -r --exclude='/.git' --filter=':- .gitignore' * services@master-bot:master-bot
|
||||||
|
|
||||||
|
.PHONY: up
|
||||||
|
up:
|
||||||
|
ssh services@master-bot "cd master-bot && docker-compose up -d --build"
|
||||||
|
|
||||||
|
.PHONY: down
|
||||||
|
down:
|
||||||
|
ssh services@master-bot "cd master-bot && docker-compose down"
|
||||||
|
|
||||||
|
.PHONY: logs
|
||||||
|
logs:
|
||||||
|
ssh services@master-bot "cd master-bot && docker-compose logs -f"
|
||||||
Reference in New Issue
Block a user