#I need help deploying my laravel project...

10 messages · Page 1 of 1 (latest)

ornate pasture
#

Asking Questions
Hi everyone, could someone please help me? I'm having trouble deploying a Laravel project on Railway and I can't get it to work properly.

Problem Description
I'm trying to deploy a Laravel project to Railway, but I keep running into issues. I've followed the basic documentation, but I'm not sure if I'm setting up the environment, database, or start commands correctly. I don't have much experience deploying to Railway, so I'd really appreciate it if someone who's done it before could guide me or share an example that worked for them.

velvet shell
#

Hey! Make sure your environment variables are set, use php artisan serve --host=0.0.0.0 --port=$PORT as the start command, and let me know what error you're seeing

ornate pasture
#

hi bro

velvet shell
ornate pasture
#

i fixed bro

#

ty

velvet shell
#

sounds good.

ivory escarp
#

Artisan serve isn't a production approach for websites, so make sure you're not trying to do that 🙂

#

It's also helpful for other newer users to share the fix, rather than just saying "I fixed it"