From 73f3b26231e56b59484f6ee13ae44233be4d535f Mon Sep 17 00:00:00 2001 From: f Date: Fri, 11 Sep 2020 14:46:23 -0300 Subject: [PATCH] subir el contenedor al servidor delegado --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5482c125..e0af1f52 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) root_dir := $(patsubst %/,%,$(dir $(mkfile_path))) include $(root_dir)/.env +delegate := anarres + assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type f) public/assets-production: $(assets) @@ -32,7 +34,7 @@ build: assets time docker build --build-arg="RAILS_MASTER_KEY=`cat config/master.key`" -t sutty/sutty . save: - time docker save sutty/sutty:latest | gzip | ssh root@sutty.nl docker load + time docker save sutty/sutty:latest | ssh root@$(delegate).sutty.nl docker load load: ssh root@sutty.nl sh -c "gunzip -c sutty.latest.gz | docker load"