Build timed out
kharioki
HOBBYOP

2 years ago

I keep trying to deploy my apollo server but it keeps failing because with a build timed out error. I'm using prisma and apollo server and my package.json looks like this:

"main": "index.js",

"engines": {

"node": "20"

},

"scripts": {

"start": "node index",

"dev": "nodemon index",

"migrate:dev": "npx prisma migrate dev",

"migrate:deploy": "npx prisma migrate deploy",

"generate": "npx prisma generate",

"build": "npx prisma migrate deploy && npm run start"

},

"keywords": [],

"author": "",

"license": "ISC",

"type": "module",

"devDependencies": {

"prisma": "^5.12.1"

},

"dependencies": {

"@apollo/server": "^4.10.2",

"@prisma/client": "^5.12.1",

"bcrypt": "^5.1.1",

"graphql": "^16.8.1",

"graphql-tag": "^2.12.6",

"nodemon": "^3.1.0"

}

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

2 years ago

Your build script should not be running the start script, please remove that portion from your build script.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...