diff --git a/Dockerfile b/Dockerfile index a57f4162..a5df110b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -119,3 +119,4 @@ VOLUME "/srv/http/data" # El puerto de puma EXPOSE 3000 +EXPOSE 9394 diff --git a/Makefile b/Makefile index e0af1f52..4d83b2c5 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) root_dir := $(patsubst %/,%,$(dir $(mkfile_path))) include $(root_dir)/.env -delegate := anarres +delegate := athshe assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type f) @@ -32,9 +32,11 @@ clean: # Generar la imagen Docker build: assets time docker build --build-arg="RAILS_MASTER_KEY=`cat config/master.key`" -t sutty/sutty . + docker tag sutty/sutty:latest sutty:keep save: time docker save sutty/sutty:latest | ssh root@$(delegate).sutty.nl docker load + date +%F | xargs git tag -f load: ssh root@sutty.nl sh -c "gunzip -c sutty.latest.gz | docker load"