Creating a Node.js application
- Log in to your Enhance control panel.
- Select the website where you want to run the app.
- In the left sidebar, click Developer tools → Node.js (location may vary by panel version).
- Enable Node.js for the website and select the Node.js version.
- Set the application entry point (for example, app.js or server.js).
Uploading your application
Upload your application files to the website’s document root using the File Manager, FTP, or SSH with git. A minimal Express.js example (app.js):Your application must listen on the port provided by the environment (process.env.PORT). The platform routes web traffic to that port automatically.
Installing dependencies
Connect via SSH, navigate to your application directory, and run:Starting and restarting the app
After uploading files or installing dependencies, start (or restart) the application from the Node.js section of the panel. Restart the app whenever you deploy new code.Troubleshooting
- 502/503 errors: the app isn’t running or crashed on startup — check the application logs in the panel.
- Module not found: run npm install again to ensure all dependencies are present.
- Port errors: make sure the app listens on process.env.PORT rather than a hard-coded port.