subir el contenedor al servidor delegado

This commit is contained in:
f 2020-09-11 14:46:23 -03:00
parent 925b4d6f4a
commit 73f3b26231

View file

@ -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"