erztemplerobba
erztemplerobba
Explore posts from servers
RRailway
Created by erztemplerobba on 6/3/2023 in #✋|help
ENOENT Error with puppeteer when creating .pdf
Done, cheers! 😄
10 replies
RRailway
Created by erztemplerobba on 6/3/2023 in #✋|help
ENOENT Error with puppeteer when creating .pdf
Wow, you're 100% correct. It didn't exist in my git repo because it's empty. Never realized git would ignore empty folders. Thanks a lot @ImLunaHey !
10 replies
RRailway
Created by erztemplerobba on 6/3/2023 in #✋|help
ENOENT Error with puppeteer when creating .pdf
N/A
10 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
That's unfortunate:/ I will let you know if I run into a problem like this!
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
thank you wyzlle!
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
btw, have you figured out how to backup your postgres db on railway?
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
@thanneman My db persists! Thx a lot for your help, brother. Not sure if it's because of the env variable change or the plugin.js but it works 😄
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
Got it. I'm using v4.1.9 right now (in dev mode)
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
maybe you could try this part:
'users-permissions': {
config: {
jwtSecret: env('JWT_SECRET'),
},
},
'users-permissions': {
config: {
jwtSecret: env('JWT_SECRET'),
},
},
who knows, maybe it fixes your 401 error. make sure to add a JWT_SECRET env in your railway variables
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
Thanks! My database.js looks pretty much like yours but my plugins.js looks like this:
module.exports = ({ env }) => ({
'users-permissions': {
config: {
jwtSecret: env('JWT_SECRET'),
},
},
upload: {
config: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
},
actionOptions: {
upload: {},
delete: {},
},
},
},
});
module.exports = ({ env }) => ({
'users-permissions': {
config: {
jwtSecret: env('JWT_SECRET'),
},
},
upload: {
config: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
},
actionOptions: {
upload: {},
delete: {},
},
},
},
});
Are you not using any media hosting service?
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
You're a magician. Would you mind sending me the contents of your /config/database.js and plugins.js? Without any hardcoded secrets ofc 😄
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
On your Railway Stapi?
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
1 min is an awful long time, though. That's almost how long the full deploy takes...
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
Only had that problem with render.com and heroku free plans but that's how it's supposed to be cause their free tier goes to sleep after a while. Could it be the JWT session token that's getting thrown away after some time so you get 401 unauthorized? Strapi might have to re-auth after long periods of inactivity. My Strapi wasn't up long enough to experience these kinds of problems, tho. Still struggling with non persistent data 😄
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
Got it. Maybe it's just the free plan on heroku that wipes the db then. Thanks a lot for the info! @Angelo Are you sure that Railway always sets up the Strapi build to reconfigure the db after each delopy? In that case, I know that I can stop tinkering to make it work 😄
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
That's weird. I've been searching the web for this issue and found tons of people that have the same problem with heroku wiping the db. Are you maybe using an external postgres db for your heroku-hosted Strapi @thanneman ? If it's true that Strapi wipes the db on each deploy, the whole thing is pretty much useless. They can't expect the user to always have exactly the same build running for years and years only to preserve data
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
It does, unfortunately. It's a total fresh Strapi installation without any changes to config files or anything like that. I just entered the environment variables and watched railway install strapi. So I wouldn't know how to fix that. I haven't found any configuration options on the railway dashboard.
35 replies
RRailway
Created by erztemplerobba on 8/30/2022 in #✋|help
Strapi database reset after re-deploy
I'm using Cloudinary for the media files which works well and persists. It's just the postgres database which Railway automatically created for me while installing Strapi that gets reset every time.
35 replies