Node.js

From Acenet Knowledgebase
Revision as of 08:10, 28 August 2018 by Docs admin (talk | contribs)
Jump to: navigation, search

Node.js applications are easy to install in cPanel on Acenet's Shared and Reseller servers, thanks to CloudLinux Node.js Selector.

  • Log into cPanel, and go to the Software section.
  • Click the "Setup Node.js App" Icon.

Cpanelnodejs.png


  • On the next screen, any currently installed Node.js apps will be listed. Click the blue "Create Application" Button in the upper right to add a new application.
Error creating thumbnail: File missing



  • There are several options and dialog boxes on the Create screen.


Error creating thumbnail: File missing



1) Select the Node.js version you wish to use from the dropdown.

2) Select the Application node: Development or Production

3) Enter the application root directory. It should be something like "/home/CPANEUSERNAME/directory". with your cPanel username and the name of the directory for your application files.

4) Edit the Application URL wil be the domain name the app will be on, plus a subdomain name which is redirected to the app.

5) Enter the name of the Application startup file. This will be accessed when the application is started or restarted.

6) Any Environmental Variables can be entered by clicking Add Variable, then entering the variable name and value, and clicking done.

Click the blue Create button in the upper right when done. Application files should then be uploaded to the application root directory, which was created in step 3.