I want to Railway run regular updates. I asked Chat GPT ways to accomplish it, it suggested creating railway.yml with the following content:
version: '1.0'
services:
someName:
build:
dockerfile: Dockerfile
env:
PORT: $${PORT}
MONGO_URL: $${MONGO_URL}
ports:
- $${PORT}:$${PORT}
restart: always
update:
schedule:
- name: update
command: node update.js
interval: 600
Though I noticed railway status
didn't actually factor in the schedule defined in the yml-file, apparently, it ignores it completely. Then I noticed that Chat GPT is using outdated information and the use railway.yml seems to have been scrapped from modern documentation... What is the modern way of deploying updates?
My goal is to make Railway check certain things every 10 minutes and make changes accordingly. The changes will be made when node update.js is run, the problem is that I don't know how to run the schedule... I have tried creating .railway folder and putting railway.yaml there with no success. My repo is hosted in GitHub.