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: