5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 07:41:41 +00:00

fix: permitir que task se llame a si mismo

en ubuntu el comando se llama `task` en vez de `go-task`
This commit is contained in:
f 2024-01-10 17:17:19 -03:00
parent f488028455
commit e82e93c883
No known key found for this signature in database

View file

@ -24,7 +24,7 @@ tasks:
deps:
- "credentials"
cmds:
- "go-task bundle"
- task: "bundle"
sources:
- "Gemfile"
generates:
@ -50,9 +50,15 @@ tasks:
cmds:
- "git lfs fetch"
- "git lfs checkout"
- "go-task rails -- webpacker:clobber RAILS_ENV=production"
- "go-task rails -- assets:precompile RAILS_ENV=production"
- "go-task rails -- assets:clean RAILS_ENV=production"
- task: "rails"
vars:
CLI_ARGS: "webpacker:clobber RAILS_ENV=production"
- task: "rails"
vars:
CLI_ARGS: "assets:precompile RAILS_ENV=production"
- task: "rails"
vars:
CLI_ARGS: "assets:clean RAILS_ENV=production"
sources:
- "package.json"
- "yarn.lock"
@ -92,7 +98,9 @@ tasks:
deps:
- "database"
cmds:
- "go-task rails -- db:prepare"
- task: "rails"
vars:
CLI_ARGS: "db:prepare"
serve:
desc: "Run Rails development server"
deps:
@ -100,7 +108,9 @@ tasks:
- "gems"
cmds:
- ": == Development server running at https://panel.{{.SUTTY_WITH_PORT}} =="
- "go-task rails -- server"
- task: "rails"
vars:
CLI_ARGS: "server"
status:
- "test -f tmp/pids/server.pid"
- "pgrep -F tmp/pids/server.pid"
@ -112,6 +122,7 @@ tasks:
- "{{.HAINISH}} yarn {{.CLI_ARGS}}"
bundle:
desc: "Bundle. Call with: go-task bundle -- arguments"
interactive: true
deps:
- "gems"
cmds:
@ -119,27 +130,37 @@ tasks:
rails:
desc: "Rails. Call with: go-task rails -- arguments"
cmds:
- "go-task bundle -- exec rails {{.CLI_ARGS}}"
- task: "bundle"
vars:
CLI_ARGS: "exec rails {{.CLI_ARGS}}"
console:
desc: "Rails console"
interactive: true
cmds:
- "go-task rails -- console"
- task: "rails"
vars:
CLI_ARGS: "console"
doc:
desc: "Build documentation"
deps:
- "gems"
cmds:
- "go-task bundle -- exec yardoc -o public/doc app lib config db"
- task: "bundle"
vars:
CLI_ARGS: "exec yardoc -o public/doc app lib config db"
gem-audit:
desc: "Audit Gem dependencies"
deps:
- "gems"
cmds:
- "go-task bundle -- audit --update"
- task: "bundle"
vars:
CLI_ARGS: "audit --update"
node-audit:
desc: "Audit Node dependencies"
deps:
- "node-modules"
cmds:
- "go-task yarn -- audit"
- task: "yarn"
vars:
CLI_ARGS: "audit"