run:
crontab:
- command: "curl --location 'https://[myurl].app/api/sessions/close-all' --header 'Content-Type: application/json'"
timing: "0 0 * * *"
# timing: "*/2 * * * *"
allContainers: false # Run on a single container
workingDir: "/var/www"
- command: "curl --location 'https://[myurl].zerops.app/api/payload-jobs/run?limit=5&queue=default' --header 'Content-Type: application/json'"
timing: "*/3 * * * *"
allContainers: false # Run on a single container
workingDir: "/var/www"
# what technology should the runtime
# container be based on, can be extended
# in `run.prepareCommands` using
# `zsc install nodejs@20`
base: nodejs@22
# what ports your app listens on
# and whether it supports http traffic
siteConfigPath: site_config.tmpl
ports:
- port: 3000
httpSupport: true
disableCompression: true
# start your application
start: pnpm run start
run:
crontab:
- command: "curl --location 'https://[myurl].app/api/sessions/close-all' --header 'Content-Type: application/json'"
timing: "0 0 * * *"
# timing: "*/2 * * * *"
allContainers: false # Run on a single container
workingDir: "/var/www"
- command: "curl --location 'https://[myurl].zerops.app/api/payload-jobs/run?limit=5&queue=default' --header 'Content-Type: application/json'"
timing: "*/3 * * * *"
allContainers: false # Run on a single container
workingDir: "/var/www"
# what technology should the runtime
# container be based on, can be extended
# in `run.prepareCommands` using
# `zsc install nodejs@20`
base: nodejs@22
# what ports your app listens on
# and whether it supports http traffic
siteConfigPath: site_config.tmpl
ports:
- port: 3000
httpSupport: true
disableCompression: true
# start your application
start: pnpm run start