Dokku deployment recipe

This commit is contained in:
wpetit 2020-04-20 12:36:47 +02:00
parent 8698dec2bf
commit 3ebb707fd3
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,13 @@
DOKKU_URL := dokku@dev.lookingfora.name:guesstimate
dokku-build: dokku-build:
docker build \ docker build \
-t guesstimate-dokku:latest \ -t guesstimate-dokku:latest \
. .
dokku-run: dokku-run:
docker run -it --rm -p 8080:80 guesstimate-dokku:latest docker run -it --rm -p 8080:80 guesstimate-dokku:latest
dokku-deploy:
$(if $(shell git config remote.dokku.url),, git remote add dokku $(DOKKU_URL))
git push -f dokku $(shell git rev-parse HEAD):master

View File

@ -1 +1 @@
/ "guesstimate" / guesstimate