Kherzell
Kherzell
RRailway
Created by Kherzell on 7/9/2024 in #✋|help
Need Help Migrating to Laravel: Stuck on Database Error!
I've recently discovered the Laravel ecosystem for website development, and I'm completely sold on it. My journey with website development has been quite confusing, especially because I'm not a fan of the modularity of JavaScript. I constantly have to find new tools that are not standardized, and I dislike having to guess which micro-services to use when developing new features like emails, forms, etc. I wanted one platform that could address all these issues, and PHP with Laravel came to mind. Additionally, it helps me understand some PHP code used in WordPress. Currently, I'm in the process of transferring my website to the Laravel ecosystem with MySQL, but I'm encountering an error. Here’s what I’ve done so far: - Uploaded the project to production using the Railway Up command. - The production project is active, but I don't see my home screen only see the error below. - On my local machine, I’ve migrated the application to use MySQL. - Pushed all changes to my linked GitHub account. - Created a MySQL service and spun up a production SQL server. - Tried connecting the variables by following this tutorial: Laravel and MySQL Deployment. I removed the last command as it'd affected the image building and got this error:
Database file at path [railway] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: select * from "sessions" where "id" = JNOCeZwVPhRbg61Uq6ESV1xKDCejzZVrY0Bclzf2 limit 1)
Keep in mind, I'm not an expert when it comes to PHP or databases, so any advice or guidance on how to resolve this would be greatly appreciated.
19 replies