Cannot deploy Strapi in mono-repo
tibere
TRIALOP

a year ago

I used the Strapi 5 template (https://github.com/szilardkoppel/railway.app-strapi) to deploy a Strapi application. It worked well and I was able to access the application online.
But I need to develop it locally.
So I cloned the template in one of my existing Github repos, where the frontend of my application is located.
My mono-repo looks like this

  • a frontend folder

  • a backend folder, which contains your Strapi 5 template.
    I've specified to Railway the backend folder that contains the Strapi code.
    Now I can start the appplication locally but the deployment no longer works.
    The logs show that the build is OK, but on deployment I get an error:
    ‘Cannot find module ‘pg’’

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies

Loading...