5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 09:06:21 +00:00

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))) root_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
include $(root_dir)/.env include $(root_dir)/.env
delegate := anarres
assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type f) assets := package.json yarn.lock $(shell find app/assets/ app/javascript/ -type f)
public/assets-production: $(assets) 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 . time docker build --build-arg="RAILS_MASTER_KEY=`cat config/master.key`" -t sutty/sutty .
save: 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: load:
ssh root@sutty.nl sh -c "gunzip -c sutty.latest.gz | docker load" ssh root@sutty.nl sh -c "gunzip -c sutty.latest.gz | docker load"