The application registration feature streamlines the management of your Node.js applications, making it easy to organize and control your projects.
Requirements for an Application to be Discoverable
- A .env file is required in the document root of the application with a port number specified.
- An ecosystem.config.js is required in the document root of the application with your application name specified:
module.exports = {
apps: [
{
name: 'My App',
cwd: '/home/virtual/vps-abbd2c/3/33d9a261cc/public_html',
script: 'npm',
args: 'start',
env: {
NODE_ENV: 'production',
},
exp_backoff_restart_delay: 100,
},
],
};
Follow these steps to use the tool effectively:
Step 1: Discovering Your Applications
- Navigate to the Node.js Application Registration Tool.
- Initially, no applications will be discovered.
- Click the “Discover applications” button.
- The tool will scan your web space to detect any Node.js applications.
Step 2: Application Discovery in Progress
- The tool will display a status indicating that it’s actively discovering applications.
- Please wait for the process to complete before proceeding.
Step 3: Managing Your Applications
- Once the scan is done, the tool will list the discovered Node.js applications under “Registered Applications.”
- You can:
- View detailed information about each application.
- Navigate directly to the application files using the “View in File Manager” link.
- Unregister an application if needed by clicking “Unregister Application.”
- Use the “Rediscover applications” button to refresh the list and detect any new additions or changes.
Additional Information and Support
- Each application’s details include the path to its main executable file (e.g., app.js).
- If you modify your web space or add new Node.js applications, use the “Rediscover applications” button to update the information.
