guesstimate/Makefile

22 lines
417 B
Makefile
Raw Normal View History

2020-04-20 12:36:47 +02:00
DOKKU_URL := dokku@dev.lookingfora.name:guesstimate
2020-04-20 14:07:26 +02:00
watch:
npm run dev
2020-04-22 22:07:52 +02:00
build: clean
2020-04-20 14:07:26 +02:00
npm run build
2020-04-22 22:07:52 +02:00
clean:
rm -rf dist
2020-04-20 12:24:17 +02:00
dokku-build:
docker build \
-t guesstimate-dokku:latest \
.
dokku-run:
2020-04-20 12:36:47 +02:00
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))
2020-04-20 14:07:26 +02:00
git push -f dokku $(shell git rev-parse HEAD):refs/heads/master