Add Project
<%= successMsg %>
<%= errMsg %>
<%if (errMsg) { %>
<% } %>
Name
*
Port
*
ⓘ
This value will be passed as an environment variable into the node process and it can be accessed from
process.env.port
variable
?
Why this is required ?
NDA checks the availability of port before starting the project to avoid port conflicts between the processes.
How this works ?
To make this work, port has to be accessed from environment variable instead of hard coding it.
For Example, if your project has code like
port = 9000
, then it should be changed as
port = process.env.port
Base Path
*
ⓘ
Provide the folder path of the project.
Example: E:/ProjectName/ or /opt/projects/ProjectName/
Start File Path
*
ⓘ
Provide the starting file path of the project.
Example: index.js or bin/index.js
Environment Variables
ⓘ
Provide variables that are has to be passed as the environment variables (if any).
Example:
{
NODE_ENV: 'production',
key: 'PROJECT_KEY'
}
Cron Jobs
ⓘ
Configure your project's cron jobs (if any)
Add one more job entry
<%if (fields.jobs && fields.jobs.length> 0) { %> <% fields.jobs.forEach(function(item,index){ %>
Enabled
<% }) %> <% } %>
Install Packages
ⓘ
If enabled, system will do npm install each time, before starting the project.
Start-on-boot
ⓘ
If enabled, this project will be started on the system start up.
This will work only if the
Start-on-boot
option is enabled in the
Configuration
page
Back