entorno de trabajo
This commit is contained in:
parent
3a3b39a2ac
commit
66875efa73
1 changed files with 9 additions and 14 deletions
23
Makefile
23
Makefile
|
@ -14,8 +14,8 @@ public/packs/manifest.json: $(assets)
|
||||||
|
|
||||||
assets: public/packs/manifest.json
|
assets: public/packs/manifest.json
|
||||||
|
|
||||||
serve:
|
serve: /etc/hosts
|
||||||
bundle exec rails s -b "ssl://0.0.0.0:3000?key=../sutty.local/domain/sutty.local.key&cert=../sutty.local/domain/sutty.local.crt"
|
bundle exec rails s -b "ssl://0.0.0.0:3000?key=../sutty.local/domain/$(SUTTY).key&cert=../sutty.local/domain/$(SUTTY).crt"
|
||||||
|
|
||||||
# Limpiar los archivos de testeo
|
# Limpiar los archivos de testeo
|
||||||
clean:
|
clean:
|
||||||
|
@ -73,15 +73,10 @@ dirs := $(patsubst %,root/%,data sites deploy public)
|
||||||
$(dirs):
|
$(dirs):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
test-container: $(dirs)
|
/etc/hosts: always
|
||||||
docker run -v $(PWD)/root/data:/srv/http/data \
|
@echo "Chequeando si es necesario agregar el dominio local $(SUTTY)"
|
||||||
-v $(PWD)/root/sites:/srv/http/_sites \
|
@grep -q " $(SUTTY)$$" $@ || echo -e "127.0.0.1 $(SUTTY)\n::1 $(SUTTY)" | sudo tee -a $@
|
||||||
-v $(PWD)/root/deploy:/srv/http/_deploy \
|
@grep -q " api.$(SUTTY)$$" $@ || echo -e "127.0.0.1 api.$(SUTTY)\n::1 $(SUTTY)" | sudo tee -a $@
|
||||||
-v $(PWD)/root/public:/srv/http/_public \
|
@grep -q " panel.$(SUTTY)$$" $@ || echo -e "127.0.0.1 panel.$(SUTTY)\n::1 $(SUTTY)" | sudo tee -a $@
|
||||||
-v $(PWD)/config/credentials.yml.enc:/srv/http/config/credentials.yml.enc \
|
|
||||||
-e RAILS_MASTER_KEY=`cat config/master.key` \
|
.PHONY: always
|
||||||
-e RAILS_ENV=production \
|
|
||||||
-it \
|
|
||||||
--rm \
|
|
||||||
--name=sutty \
|
|
||||||
sutty/sutty /bin/sh
|
|
||||||
|
|
Loading…
Reference in a new issue