Deployment: npm start issues
roygatling
HOBBYOP

5 months ago

I have a web app that has a frontend and server. I use npm run server and npm run dev to start these locally.

I updated my deployment settings with npm run server && npm run dev. I get an error each time I try to access the app via the URL.

Here is the log output.

Any thoughts on what I'm doing wrong?

Starting Container

npm warn config production Use --omit=dev instead.

npm warn config production Use --omit=dev instead.

construction-spec-analyzer@1.0.0 dev

vite

construction-spec-analyzer@1.0.0 server

node server.js

VITE v5.4.8 ready in 311 ms

➜ Local: http://localhost:5173/

➜ Network: use --host to expose

[dotenv@17.2.3] injecting env (0) from .env -- tip: ⚙ load multiple .env files with { path: ['.env.local', '.env'] }

Server running on port 3001

Database connected successfully

Stopping Container

Closed$10 Bounty

1 Replies

5 months ago

Please do not create duplicate threads.


Status changed to Closed brody 5 months ago


Loading...