Deploy a nodeJS/vite app

stb13579TRIAL

6 months ago

I have a simple vite frontend/nodeJS backend app that I am trying to deploy. What I don't understand is that the logs for each service seem to indicate a successful deployment, but the project logs always look like the following:

`Chatbot API is running on port 8080

Stopping Container

npm error path /app

npm error command failed

npm error signal SIGTERM

npm error command sh -c node server.js

npm error A complete log of this run can be found in: /root/.npm/logs/2024-12-14T105707675Z-debug-0.log`

Any help or pointers on how to troubleshoot this is hugely appreciated 🙏

Solved

0 Replies

stb13579TRIAL

6 months ago

Project ID: 582f5237-7bdb-49b0-8342-00a9d7c9a4fa


stb13579TRIAL

6 months ago

Deploy a nodeJS/vite app


stb13579TRIAL

6 months ago


6 months ago

hello!

you would want to follow this guide to deploy your monorepo -

and your frontend is currently setup to run a development server

copy the nixpacks.toml and Caddyfile from this repo into your frontend folder


6 months ago

following back up here, did this work for you?


stb13579TRIAL

6 months ago

Thanks, yes I think it is good. There are a couple small issues still, but I understand them and just need time to work on it. Thanks for the help!


6 months ago

no problem, glad its working!


6 months ago

!s


Status changed to Solved brody 6 months ago