You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Create new **user** (If you have one no need to create)
35
+
2. User needs bash access for app to work, go to **User edit** > **advanced options** > **SSH Access** > **bash**
36
+
3.**Add** new web (Ex. acme.com)
37
+
4. Go to **edit** this new web and go to **Quick Install App**
38
+
5. Select **NodeJS**
39
+
***Node Version**: If you manage node with nvm, it put a `.nvmrc file in root of nodeapp with selected version. If you installed node without nvm you can remove this file.
40
+
41
+
***Start Script**: It creates a `ecosystem.config.js` file in root of nodeapp with the script that you fill (it should be the one you have in your `package.json`) for PM2 can manage the app.
42
+
43
+
***Port**: You can manage multiple apps with different ports, put different port for each app you have (Ex. 3000).
44
+
It creates `.env` file in root of nodeapp with the selected port, if your app don't use this `.env` file you can remove.
45
+
46
+
***PHP Version**: This is only for HestiaCP you can put any value (**NOT IMPORTANT**)
47
+
6. Go to Edit web > Advanced Options > Proxy Template > NodeJS
48
+
7. Upload your app with filemanager, clone with git... in `/home/<user>/<domain.com>/private/nodeapp`
49
+
8. 🎉 Congratulations you're done!!!
50
+
51
+
## FAQ
52
+
53
+
### How to change the port if i have a web running
54
+
55
+
First change proxy template to default, reconfigure the app using the QuickInstall and finally change the proxy template to NodeJS.
56
+
57
+
### I want to remove the domain
58
+
59
+
Remove it normally, open the filemanager and remove hestiacp_nodejs_config/web/<domain.com>.
0 commit comments