Deployment through github - running into issues
balachaj
HOBBYOP

3 months ago

The app gets deployed and immediately crashes. When I look at the logs, it says can't find npm. I am not able to check if npm is installed in the machine. I am a bit of a newbie - I tried the CLI interface and could link to the project but am not able to actually get to the machine's shell. The log also says a client directory is missing. So not sure if I am doing something wrong.

Solved$10 Bounty

Pinned Solution

Yeah if it's a monorepo, you'd need to create two separate services and declare different root directories in each service.

If Railpack still fails to know what to do, you can create a custom Railpack configuration file for each service.

4 Replies

firewry
HOBBY

3 months ago

I believe you need a package.json file


Would help if you could share the repository.


balachaj
HOBBYOP

3 months ago

Thanks for the responses. I was digging around and it appears as though Railway doesn't recognize if I used multiple languages - the front end is in Node and the backend is in Python. I am going to try adding the repo twice and specifying the appropriate directory. Hope that works. Thanks again.


Yeah if it's a monorepo, you'd need to create two separate services and declare different root directories in each service.

If Railpack still fails to know what to do, you can create a custom Railpack configuration file for each service.


Status changed to Solved noahd about 2 months ago


Loading...