Deploying Strapi V5 with Postgres

birdzai
HOBBY

7 months ago

Hi there…

I've successfully deployed my Strapi V5 app along with a Postgres DB. I first created then seeded the DB with my data (via psql utilizing the ${DATABASEPUBLICURL} and have confirmed that my DB has been properly seeded with it's data. I then deployed my Strapi V5 project via Github source repo and added all required environment variables, including the internal ${DATABASE_URL} using a variable reference to hook it up to the Postgress DB instance. I then generated a public domain with the familiar .up.railway.app URL. But when I hit this URL in my browser, all I'm getting is a blank white page. No errors whatsoever in the logs. I'm stumped. I've got another older Strapi V4 project deployed with the Postgres Legacy DB, and it's all working fine.

It's been awhile since I've gone through a new deployment…have I forgotten to do something?

My project ID is fbbda251-7927-47c2-97ee-554da5c0f61d

Solved

0 Replies

7 months ago

@Birdzai ^


birdzai
HOBBY

7 months ago

@Brody I'm here 🙂


7 months ago

please provide the id


birdzai
HOBBY

7 months ago

@Brody I did, didn't I? It's at the the bottom of the post.

Here it is again tho: fbbda251-7927-47c2-97ee-554da5c0f61d


7 months ago

ah my bad, the bot didnt pick it up and then it seems im blind


7 months ago

have you checked the console logs when loading the website?


birdzai
HOBBY

7 months ago

I get HTML returned, which is the default HTML when JS is loaded from Strapi. Maybe this is something for the Strapi channel, as it seems to be deployed. I'm not just getting the proper admin panel I'm expecting.


birdzai
HOBBY

7 months ago

The response is 200


7 months ago

have you checked the console logs?


birdzai
HOBBY

7 months ago

Ahhh….sorry…should have done that. Yup, that points to the error:

admin:1 Refused to load the script 'https://7kwonders-strapi5-production.up.railway.app/admin/strapi-BbIkcHvz.js' because it violates the following Content Security Policy directive: "script-src https://cdn.ckeditor.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

birdzai
HOBBY

7 months ago

Not sure how to fix that yet, but it's clearly not a Railway issue. Thanks for pointing me in the right direction.


7 months ago

no problem!


7 months ago

!s


Status changed to Solved brody 7 months ago


Deploying Strapi V5 with Postgres - Railway Help Station