I have a single process in my
[processes] cron = "supercronic /app/crontab"
When the machine boots, I would like to run more than one command.
The following does not work:
[processes] cron = "node /app/src/main.js & echo 'This never gets called...' & supercronic /app/crontab"
Nor does calling the
supercronic command first:
[processes] cron = "supercronic /app/crontab & node /app/src/main.js" # The supercronic command will take the `& node /app/src/main.js` as arguments and fail
I need those commands to run on the same machine, which is the reason why I’m not creating a separate process.
Is this even possible?
I also tried changing the CMD at the bottom of my Dockerfile to
CMD [ "node", "src/main" ], but it seems like this command is never really called.