mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 19:33:38 +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:
parent
f488028455
commit
e82e93c883
1 changed files with 32 additions and 11 deletions
|
@ -24,7 +24,7 @@ tasks:
|
||||||
deps:
|
deps:
|
||||||
- "credentials"
|
- "credentials"
|
||||||
cmds:
|
cmds:
|
||||||
- "go-task bundle"
|
- task: "bundle"
|
||||||
sources:
|
sources:
|
||||||
- "Gemfile"
|
- "Gemfile"
|
||||||
generates:
|
generates:
|
||||||
|
@ -50,9 +50,15 @@ tasks:
|
||||||
cmds:
|
cmds:
|
||||||
- "git lfs fetch"
|
- "git lfs fetch"
|
||||||
- "git lfs checkout"
|
- "git lfs checkout"
|
||||||
- "go-task rails -- webpacker:clobber RAILS_ENV=production"
|
- task: "rails"
|
||||||
- "go-task rails -- assets:precompile RAILS_ENV=production"
|
vars:
|
||||||
- "go-task rails -- assets:clean RAILS_ENV=production"
|
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:
|
sources:
|
||||||
- "package.json"
|
- "package.json"
|
||||||
- "yarn.lock"
|
- "yarn.lock"
|
||||||
|
@ -92,7 +98,9 @@ tasks:
|
||||||
deps:
|
deps:
|
||||||
- "database"
|
- "database"
|
||||||
cmds:
|
cmds:
|
||||||
- "go-task rails -- db:prepare"
|
- task: "rails"
|
||||||
|
vars:
|
||||||
|
CLI_ARGS: "db:prepare"
|
||||||
serve:
|
serve:
|
||||||
desc: "Run Rails development server"
|
desc: "Run Rails development server"
|
||||||
deps:
|
deps:
|
||||||
|
@ -100,7 +108,9 @@ tasks:
|
||||||
- "gems"
|
- "gems"
|
||||||
cmds:
|
cmds:
|
||||||
- ": == Development server running at https://panel.{{.SUTTY_WITH_PORT}} =="
|
- ": == Development server running at https://panel.{{.SUTTY_WITH_PORT}} =="
|
||||||
- "go-task rails -- server"
|
- task: "rails"
|
||||||
|
vars:
|
||||||
|
CLI_ARGS: "server"
|
||||||
status:
|
status:
|
||||||
- "test -f tmp/pids/server.pid"
|
- "test -f tmp/pids/server.pid"
|
||||||
- "pgrep -F tmp/pids/server.pid"
|
- "pgrep -F tmp/pids/server.pid"
|
||||||
|
@ -112,6 +122,7 @@ tasks:
|
||||||
- "{{.HAINISH}} yarn {{.CLI_ARGS}}"
|
- "{{.HAINISH}} yarn {{.CLI_ARGS}}"
|
||||||
bundle:
|
bundle:
|
||||||
desc: "Bundle. Call with: go-task bundle -- arguments"
|
desc: "Bundle. Call with: go-task bundle -- arguments"
|
||||||
|
interactive: true
|
||||||
deps:
|
deps:
|
||||||
- "gems"
|
- "gems"
|
||||||
cmds:
|
cmds:
|
||||||
|
@ -119,27 +130,37 @@ tasks:
|
||||||
rails:
|
rails:
|
||||||
desc: "Rails. Call with: go-task rails -- arguments"
|
desc: "Rails. Call with: go-task rails -- arguments"
|
||||||
cmds:
|
cmds:
|
||||||
- "go-task bundle -- exec rails {{.CLI_ARGS}}"
|
- task: "bundle"
|
||||||
|
vars:
|
||||||
|
CLI_ARGS: "exec rails {{.CLI_ARGS}}"
|
||||||
console:
|
console:
|
||||||
desc: "Rails console"
|
desc: "Rails console"
|
||||||
interactive: true
|
interactive: true
|
||||||
cmds:
|
cmds:
|
||||||
- "go-task rails -- console"
|
- task: "rails"
|
||||||
|
vars:
|
||||||
|
CLI_ARGS: "console"
|
||||||
doc:
|
doc:
|
||||||
desc: "Build documentation"
|
desc: "Build documentation"
|
||||||
deps:
|
deps:
|
||||||
- "gems"
|
- "gems"
|
||||||
cmds:
|
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:
|
gem-audit:
|
||||||
desc: "Audit Gem dependencies"
|
desc: "Audit Gem dependencies"
|
||||||
deps:
|
deps:
|
||||||
- "gems"
|
- "gems"
|
||||||
cmds:
|
cmds:
|
||||||
- "go-task bundle -- audit --update"
|
- task: "bundle"
|
||||||
|
vars:
|
||||||
|
CLI_ARGS: "audit --update"
|
||||||
node-audit:
|
node-audit:
|
||||||
desc: "Audit Node dependencies"
|
desc: "Audit Node dependencies"
|
||||||
deps:
|
deps:
|
||||||
- "node-modules"
|
- "node-modules"
|
||||||
cmds:
|
cmds:
|
||||||
- "go-task yarn -- audit"
|
- task: "yarn"
|
||||||
|
vars:
|
||||||
|
CLI_ARGS: "audit"
|
||||||
|
|
Loading…
Reference in a new issue