nodejs:production-mode
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
nodejs:production-mode [2024/04/04 05:40] – kirtisingh | nodejs:production-mode [2024/04/05 00:26] (current) – kirtisingh | ||
---|---|---|---|
Line 17: | Line 17: | ||
{{: | {{: | ||
- | **Important | + | **Important |
- Select the User/VHost (website)\\ | - Select the User/VHost (website)\\ | ||
- Enter the ‘App Web path’ . This would be like /app1 or /app2 or it can even be the website root i.e. /\\ | - Enter the ‘App Web path’ . This would be like /app1 or /app2 or it can even be the website root i.e. /\\ | ||
Line 24: | Line 24: | ||
- Under the production filesystem path, enter the folder containing the app w.r.t. / | - Under the production filesystem path, enter the folder containing the app w.r.t. / | ||
- Also finally select the Nodejs version that you wish to use with the App | - Also finally select the Nodejs version that you wish to use with the App | ||
+ | |||
+ | In production mode the Node app runs w.r.t. system path reference. **To put it simply you need to ensure that any file references in your code, are absolute and not relative.** Lets say your Node app start point is / | ||
With the above steps, you have mapped the web-server' | With the above steps, you have mapped the web-server' | ||
To manage the App process, you can do the same from within Node Apps -> App : Manage App State | To manage the App process, you can do the same from within Node Apps -> App : Manage App State |
nodejs/production-mode.1712209219.txt.gz · Last modified: 2024/04/04 05:40 by kirtisingh