2 years ago
I've a nodejs application, whose docker-file looks like this:
FROM node:18
WORKDIR /rtsApp
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "run", "deploy"]here is the package-json:
"deploy": "npx webpack --config webpack.config.js && tsx gameserver/index",
so, when i run the same in local, it works fine, however on railway.app, it crashes with following message:
npx webpack --config webpack.config.js && tsx gameserver/index
Killed
can anyone please help here ?
3 Replies
2 years ago
Yes, I'm on trial plan.
Its a server (colyseus), it exposes api endpoint that returns the html output in "dist" directory.
the output in this "dist" directory is generated via webpack command as part of server startup command
2 years ago
it's very likely this app is trying to use more resources than what your plan allows for, an upgrade to hobby would be in order.
Status changed to Solved Railway • about 2 years ago