20 Replies
Was just going to post. Seems like there's an issue with building in general from the past 15 mins or so.
Also getting a lot of 504 gateway-timeout issues from cloudflare when accessing the railway api.
2 years ago
you are trying to start your server during build
2 years ago
are you starting the server in your build script?
im dont sure 🫣
"start": "node build/main.js",
"dev": "ts-node-dev src/main.ts",
"build": "ts-node src/main.ts",
The script is by default so I understand that the Start script is being used
2 years ago
yes you are starting your server in the build script
2 years ago
have ts-node build not run the ts file
I have to change:
"start": "node build/main.js",
by:
"start": "ts-node build/main.js",
?
2 years ago
that can work, but also remove the build script
thanks you a lot, im currently trying right now, but bbgum is right
i just redeploy a already deploy proyect and got the same issue
2 years ago
your issue is a config issue, you where starting your server duing build
hello brody, now its completed but thorw this error:
node:internal/modules/cjs/loader:1143
throw err;
^
Error: Cannot find module './main.js'
2 years ago
show me your scripts please