最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Deploy laravel-sail in railway - Stack Overflow

programmeradmin5浏览0评论

I built a web app using Laravel 12 with Sail, and I'm trying to deploy it on Railway. I found some guides, but none seem to work.

I uploaded my project, but I'm getting a 502 Bad Gateway error. Additionally, when I create the database service on Railway, Laravel doesn't seem to connect to it.

What I've tried:

  1. Uploading the project directly from GitHub to Railway.

  2. Creating a MySQL service on Railway and updating my .env file with the provided credentials.

  3. Running migrations manually, but Laravel can't connect to the database.

My questions:

Do I need to create a custom Dockerfile to deploy Sail on Railway?

Is there any step-by-step guide to deploy a Laravel 12 Sail project on Railway?

What’s the best approach to handle database connections in Railway with Sail?

Any help or guidance would be greatly appreciated. Thanks!

发布评论

评论列表(0)

  1. 暂无评论