job "salience-editor-qwik-city" { datacenters = ["ord10"] type = "service" constraint { attribute = "${node.unique.name}" value = "chicago-web01" } group "app" { count = 1 network { mode = "host" port "http" { # Nomad will assign an available port } } # Blue-green deployment strategy using canary update { max_parallel = 1 health_check = "checks" min_healthy_time = "10s" healthy_deadline = "5m" auto_promote = true auto_revert = true canary = 1 } task "node-server" { driver = "raw_exec" user = "peoplesgrocers" config { # Set working directory to release path # RELEASE_PATH will be interpolated during deployment work_dir = "$RELEASE_PATH" command = "/home/peoplesgrocers/.nvm/versions/node/v24.10.0/bin/yarn" args = ["node", "server/entry.express.js"] } # Template to set working directory path dynamically # This will be replaced during deployment env { PORT = "${NOMAD_PORT_http}" ORIGIN = "https://peoplesgrocers.com" PATH = "/home/peoplesgrocers/.nvm/versions/node/v24.10.0/bin:/usr/local/bin:/usr/bin:/bin" HOME = "/home/peoplesgrocers" } # Release path set during deployment via envsubst template { data = <