Environment Variables(Node.js)

Environment Variables(Node.js):
NodeJS:

Variable

Value Example

Description

APP_FILE

server.js

The main application file to be launched

AUTO_OLD_HEAP

TRUE

Turns on/off Apiqcloud memory autoconfiguration (sets maximum size of old heap based on the amount of memory on container)

HOME_DIR

/home/Apiqcloud

Container home directory (informational)

NODE_ENV

development

Specifies the environment in which an application is running (e.g. development, staging, production, testing, etc)

NODE_OPTIONS

--trace-warnings

Variable for specifying the V8 runtime options

NVM_DIR

informational

Path where NVM is installed

PACKAGE_MANAGER

npm

Variable which contains the name of the utility used for installing the javascript packages

PACKAGE_MANAGER_OPTS

 

Additional options for the package manager (refer to the official npmor yarn documentation)

PROCESS_MANAGER

npm

Variable for choosing the Node.js process manager (i.e. npm, pm2, forever, supervisor)

PROCESS_MANAGER_FILE

 

Path to the file which contains the start options for the process manager

ROOT_DIR

/home/Apiqcloud/ROOT

Sets a path to the directory for application deployment

STACK_NAME

nodejs

Name of the stack (informational)

STACK_SHORT_VERSION

6

Major version of the current template (informational)

UPDATE_PACKAGES_ON_RESTART

true

Enables/disables automatic packages installation after the nodejs service restart. If there is no node_modulesdirectory inside the webroot one, such an update is called regardless of the variable

 

  • Environment Variables(Node.js)
  • 0 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Share Environment

Share Environment A client who originally created an environment becomes its Owner and share...

Clone Environment

Cloning Environment Apiqcloud provides multiple environments in just a few clicks, like...

Create Environment

How to Create your Apiqcloud Environment Firstly,  you need to create an appropriate...

Environment Aliases

Environment Aliases To ease the process of management, creating alternative (alias) for an...

Enviornment Variables

Environment Variables: To store the values of the frequently used parameters environment...