mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:56:21 +00:00
subir el contenedor al servidor delegado
This commit is contained in:
parent
925b4d6f4a
commit
73f3b26231
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue