📌How to setup a node.js application
Last updated
Last updated
Head over to our panel (https://hunati.com:2222) and click on the icon below (Setup Node.js App)
Click on "Create Application" and follow the steps below.
Now fill everything in, for the node.js version we recommend the latest version (18.6.0) and put the mode on "Production". For your application root, you take the path from domains to public_html (like in the image). The application URL should be the domain you want to run the application on.
The last part is the startup file, this file usually is your "index.js" or "server.js" (this is a required field) but if you have a different name then put it there. Also, apps cannot be run using a startup script! If everything is filled in you click on "Create".
After you have created the application you need to stop it and install npm. When the installation is done you start the app again.