5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 16:36:22 +00:00

correr rake y rails dentro de hainish

```bash
make rails args="g migration CreateTable"
make rake args="routes"
```
This commit is contained in:
f 2021-05-06 15:19:34 -03:00
parent 8924e6aee8
commit f37ed785e3

View file

@ -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: