User Tools

Site Tools


nodejs:differences-dev-prod

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nodejs:differences-dev-prod [2024/04/07 03:33] kirtisinghnodejs:differences-dev-prod [2024/04/07 03:39] (current) kirtisingh
Line 1: Line 1:
 ===Differences between NodeJS development and production modes=== ===Differences between NodeJS development and production modes===
 +
 +N99panel offers two modes for App deployment - [[:nodejs:development-mode|development]] and [[:nodejs:production-mode|production]] . Here we point out the differences between the two modes so that a user can easily deploy their app - initially in development mode and then later in production mode.
  
 | ^Development Mode ^Production Mode| | ^Development Mode ^Production Mode|
 ^App Trigger|The user triggers the app via SSH|The system triggers the app as per the config settings| ^App Trigger|The user triggers the app via SSH|The system triggers the app as per the config settings|
 ^App Stability|The app will only run for as long SSH session or the process is running (if placed in background using &). Still the process is unpredictable.\\ \\ **//System or SSHD restart will stop the app//**|It is highly stable. \\ \\ **//Even after system restart the App would also start//**| ^App Stability|The app will only run for as long SSH session or the process is running (if placed in background using &). Still the process is unpredictable.\\ \\ **//System or SSHD restart will stop the app//**|It is highly stable. \\ \\ **//Even after system restart the App would also start//**|
-^Environment Variable|Typically the environment variables pertaining to node etc. would be applicable as per SSH environment|Environment variables file can be specified while configuring the App|+^Environment Variables|Typically the environment variables pertaining to node etc. would be applicable as per SSH environment|Environment variables file can be specified while configuring the App|
 ^Resource References|If a user is starting the App from the App's folder, all references within the code etc. would be relative to that folder.|Relative references to resources will not work. Absolute or full path of resources needs to be specified. \\ \\ Here we advise that you design your app in such a way, that the absolute path is specified only once in the environment variable file, and the same can then be referred for creating assets/resources paths.|  ^Resource References|If a user is starting the App from the App's folder, all references within the code etc. would be relative to that folder.|Relative references to resources will not work. Absolute or full path of resources needs to be specified. \\ \\ Here we advise that you design your app in such a way, that the absolute path is specified only once in the environment variable file, and the same can then be referred for creating assets/resources paths.| 
nodejs/differences-dev-prod.1712460789.txt.gz · Last modified: 2024/04/07 03:33 by kirtisingh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki