tomp7579
tomp7579
RRailway
Created by tomp7579 on 9/2/2023 in #✋|help
Run a daily rails rake script on cron
Thanks for your help, I think Im good now.
17 replies
RRailway
Created by tomp7579 on 9/2/2023 in #✋|help
Run a daily rails rake script on cron
When that script terminates, does the railway service then shut down on its own?
17 replies
RRailway
Created by tomp7579 on 9/2/2023 in #✋|help
Run a daily rails rake script on cron
AH I think I got it, needed to add a ./ in front of the start script
17 replies
RRailway
Created by tomp7579 on 9/2/2023 in #✋|help
Run a daily rails rake script on cron
Ok and for docker that just overrides the entrypoint script right?
17 replies
RRailway
Created by tomp7579 on 9/2/2023 in #✋|help
Run a daily rails rake script on cron
The service I set up is hooked to the same github repo as my server service and inheriting the same docker files so I'm not sure if I need different docker files for this cron service that run the script after bringing the container up? If so, not sure how to specify which docker files to use on start.
17 replies
RRailway
Created by tomp7579 on 9/2/2023 in #✋|help
Run a daily rails rake script on cron
Thanks yes I've seen that, I think what I'm confused about is how to actually run the rake task in the docker container. I tried setting my start command as the script that should run the rake task (assuming that it would run from within the container) but that isnt working (I see now that it overrides the docker build so thats not right) and I'm not sure how to specify the script to run.
17 replies
RRailway
Created by tomp7579 on 9/2/2023 in #✋|help
Run a daily rails rake script on cron
27e66b9a-1db7-462a-a04b-8430e543caa9
17 replies