https://garden.io logo
Now that we're getting rid of the "--dev" flag, ho...
# 💻|contributing
b
Now that we're getting rid of the "--dev" flag, how would I run a persistent local process? Something like this:
Copy code
kind: Module
name: local
type: exec
local: true
include: []

services:
  - name: local
    deployCommand: []
    devMode:
      command: ["npm", "run", "dev"]
(I know that's a module, just copied from existing config, but I figure it'll work the same with actions.) Previously I'd just run
garden deploy --dev
, and that deploys the stack, starts sync mode were applicable, and starts the local process. Or specifically
garden deploy local --dev
Should the
--sync
flag be used here since obviously there's no sync going on? Or do we need to add special primitives around local processes (which is really not ideal imo)?
10 Views