Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jorisnoo's avatar

How to run a node server with forge?

Does anyone has experience with running isomorphic/universal JS apps in production? I try to run my project (a react/flux app) in production. It works perfectly on my local machine (even in production mode), but not on the server...

I do following tasks:

  1. Deploy all files to the server (with deploybot or envoyer)
  2. Via SSH (forge@ip) -> Run npm install
  3. Build js/css etc. (npm run build) with webpack and gulp
  4. Start node server (npm run start)
  • The server seems to actually run fine, but it is running on Port 8080 and I have no idea how to reach it. Where do I have to forward it to port 80?
  • As I start the server in teminal via SSH, it shuts down after I close the terminal. How can I run the server persistently and automatically?

Thanks!

0 likes
1 reply

Please or to participate in this conversation.