Skip to content
Setting up a cron job results in a Host Error.
hayatonjp
OP

2 years ago

When I set up a Cron Schedule and configure the Laravel cron command in the Custom Start Command, I get a "Host Error."

Is this a bug?

Solved$10 Bounty

4 Replies

yashko

2 years ago

Hello @hayatonjp! Can you please share your existing configuration of a cron command you created?


hayatonjp
OP

2 years ago

I set php artisan ~ as the Custom Start Command and 0 0 * * * as the Cron Schedule, then deployed it.


hayatonjp
OP

2 years ago

It was a basic mistake.

I created a new service specifically for the cron job, separate from the service with the custom domain, and simply set up the cron there — and it worked.


hayatonjp

It was a basic mistake. I created a new service specifically for the cron job, separate from the service with the custom domain, and simply set up the cron there — and it worked.

yashko

2 years ago

Glad to hear you fixed it! Can you please mark this thread as resolved?


Status changed to Open ntheck • over 1 year ago


Status changed to Solved ntheck • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...