server deployment
error: [prestart:error] Usage: /assets/scripts/prestart.mjs <config-file> <output-file>
after custom deployment command. I would like to add anotherstart command apart from the default ones is that possble if so how
17 Replies
Project ID:
5a0ee64c-4acb-4b7a-a156-b53fd08e9edd
5a0ee64c-4acb-4b7a-a156-b53fd08e9edd
what command would you like to add
node cron.js
is this a php or a node app?
php
whats with node then?
node /assets/scripts/prestart.mjs /assets/nginx.template.conf && (php-fpm -y /assets/php-fpm.conf & nginx -c /nginx.conf) && (node cron.js&)
current start command
oh its for a cronjob in the background
what does the cron job do?
checks something in the db
then you want a seprate railway service that only runs that cron job
how
nd why
how: create a new railway service in the same project, have it deploy from the same repo, and set the start command to
node cron.js
why: because its a separate task, it should be ran in a separate serviceok ty
i was thinking abt that
but thought there was an easier wey 😄
this is the easy way
okay
thanks
6 am time to sleep
gn brody
thanks again
happy to help!