2 years ago
I would like to trigger an endpoint on a cron schedule. I am aware that railway already provides a way to spin up a service and do so, but I was wondering if there was a way to do it such that I only need to setup an endpoint using the internal networking feature. That way I will not have to create a new service.
44 Replies
Since railway already runs on GCP, this should be not be very difficult to implement
2 years ago
not sure how GCP comes into play here
2 years ago
right but railway already supports cron in a far more versatile way
2 years ago
you could spin up a ubuntu image on a schedule and use curl in the start command
im aware of it's versatility but it also ends up with me writing around 20 lines of code to do something that should be achievable in 1
2 years ago
^
2 years ago
please read my message
2 years ago
no code would be involved
2 years ago
of course -
2 years ago
please read the docs page i linked
is there a railway variable for internal url? I am trying ${{App.RAILWAY_STATIC_URL}} but that resolves to the public url
2 years ago
yes there is -
2 years ago
project id please
2 years ago
please read the docs page i linked
2 years ago
ubuntu the desktop install does, the ubuntu docker image does not, you need to use an image with curl such as chainguard/curl
2 years ago
try this image instead - curlimages/curl
2 years ago
your APP_URL is also incorrect, please read this docs section -
2 years ago
awesome!
2 years ago
see, it was easy! and you were thinking youd need to write code!
2 years ago
is this website listening on ipv6 and port 8080?
2 years ago
you would check that in your code and or start command
2 years ago
note quite, that's ipv4
2 years ago
please read the docs section -
2 years ago
awesome




