R
Railwayβ€’9mo ago
mparty

Strapi Deployment database wipes after every commit.

GM, i have just recently started using railway for my strapi backend and db. I have followed some online guides and found that after committing a change, the data from the db is erased. I have read all the posts in the help channel that relate to this, but i cant seem to pinpoint the reason. I have then gone and cloned the strapi template railway has and that does not seem to wipe the data after every commit. I wanted to compare my deployment against that to see the differences, but I could not find anything. Not sure if i need to make a help post or if someone has a link to a post I have missed. Can someone help me understand what is going on here, so i can create a new strapi backend and db (not the template) where it does not reset after every commit. Thanks!
Solution:
sqlite
Jump to solution
22 Replies
Percy
Percyβ€’9mo ago
Project ID: N/A
mparty
mpartyβ€’9mo ago
N/A
Brody
Brodyβ€’9mo ago
are you running strapi in develop mode?
mparty
mpartyβ€’9mo ago
nope. just went through and checked all the deployment logs, they all run in production
Brody
Brodyβ€’9mo ago
may i ask why dont you wanna use the template?
mparty
mpartyβ€’9mo ago
No description
mparty
mpartyβ€’9mo ago
i think i see why...
Solution
Brody
Brodyβ€’9mo ago
sqlite
mparty
mpartyβ€’9mo ago
ahha fml
Brody
Brodyβ€’9mo ago
use template πŸ™‚
mparty
mpartyβ€’9mo ago
I have spent 2 weekends configuring package versions because dependencies break. I am using nodejs 18, and i know the template is on 20, I am worried i will lose another 2 weekend :kek:
Brody
Brodyβ€’9mo ago
use node 20 then
mparty
mpartyβ€’9mo ago
I have tried. it breaks deployment
Brody
Brodyβ€’9mo ago
try node 18 then
mparty
mpartyβ€’9mo ago
Template doenst build in 18? not sure i didnt try it in 18 tbh, it asked me for 20
Brody
Brodyβ€’9mo ago
change it
mparty
mpartyβ€’9mo ago
Alright i will get onto it. Thanks for that mate! cant believe this tho lol
Brody
Brodyβ€’9mo ago
sqlite is the default
mparty
mpartyβ€’9mo ago
yeah must be referring to my database.js in the dev env
Brody
Brodyβ€’9mo ago
sounds about right
mparty
mpartyβ€’9mo ago
That was it. Fixed up my database config files for production and all g. TY
Brody
Brodyβ€’9mo ago
no problem!
Want results from more Discord servers?
Add your server