From f37ed785e32b1dd3b39aafa91bc892a5f2a0b000 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 6 May 2021 15:19:34 -0300 Subject: [PATCH] correr rake y rails dentro de hainish ```bash make rails args="g migration CreateTable" make rake args="routes" ``` --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 15603bf..757be73 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,13 @@ test: always serve: /etc/hosts $(hain) 'cd /Sutty/sutty; bundle exec rails s -b "ssl://0.0.0.0:3000?key=../sutty.local/domain/$(SUTTY).key&cert=../sutty.local/domain/$(SUTTY).crt"' +# make rails args="db:migrate" +rails: + $(hain) 'cd /Sutty/sutty; bundle exec rails $(args)' + +rake: + $(hain) 'cd /Sutty/sutty; bundle exec rake $(args)' + # Servir JS con el dev server. # Esto acelera la compilaciĆ³n del javascript, tiene que correrse por separado # de serve. @@ -94,7 +101,7 @@ fa: app/assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome ota: assets sudo chgrp -R 82 public/ - rsync -av public/ athshe:/srv/sutty/srv/http/data/_public/ + rsync -av --delete-after public/ athshe:/srv/sutty/srv/http/data/_public/ # Hotfixes ota-rb: