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,3 +1,5 @@
DOKKU_URL := dokku@dev.lookingfora.name:guesstimate
dokku-build:
docker build \
-t guesstimate-dokku:latest \
@ -5,3 +7,7 @@ dokku-build:
dokku-run:
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