Dokku deployment recipe
This commit is contained in:
parent
8698dec2bf
commit
3ebb707fd3
6
Makefile
6
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
DOKKU_URL := dokku@dev.lookingfora.name:guesstimate
|
||||||
|
|
||||||
dokku-build:
|
dokku-build:
|
||||||
docker build \
|
docker build \
|
||||||
-t guesstimate-dokku:latest \
|
-t guesstimate-dokku:latest \
|
||||||
|
@ -5,3 +7,7 @@ dokku-build:
|
||||||
|
|
||||||
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
|
|
@ -1 +1 @@
|
||||||
/ "guesstimate"
|
/ guesstimate
|
||||||
|
|
Loading…
Reference in New Issue