mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:26:21 +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:
parent
8924e6aee8
commit
f37ed785e3
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -26,6 +26,13 @@ test: always
|
||||||
serve: /etc/hosts
|
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"'
|
$(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.
|
# Servir JS con el dev server.
|
||||||
# Esto acelera la compilación del javascript, tiene que correrse por separado
|
# Esto acelera la compilación del javascript, tiene que correrse por separado
|
||||||
# de serve.
|
# de serve.
|
||||||
|
@ -94,7 +101,7 @@ fa: app/assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome
|
||||||
|
|
||||||
ota: assets
|
ota: assets
|
||||||
sudo chgrp -R 82 public/
|
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
|
# Hotfixes
|
||||||
ota-rb:
|
ota-rb:
|
||||||
|
|
Loading…
Reference in a new issue