Как установить приложение node js в CPanel / Shared Hosting - PullRequest
0 голосов
/ 21 июня 2020

Я хотел разместить свое приложение Node js с помощью CPanel с общим хостингом. Не могли бы вы помочь мне с этим.

1 Ответ

0 голосов
/ 21 июня 2020

Чтобы разместить ваше приложение Node.js с помощью Cpanel, необходимо выполнить несколько шагов.

  1. Войдите в свою учетную запись CPanel

  2. Go, чтобы Вкладка «Программное обеспечение» и выберите «SetUp Node.js App» Select Setup Node.js App

  3. Click Create Application Button enter image description here

  4. Fill Application root, Application URL and Application Startup File and Click Create Button enter image description here

  5. Go to file Manager and Create package.json file in the app file directory. and add this

    { "name": "Node App", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "author": "", "license": "ISC" }

  6. Go to Setup Node.js App and select Edit icon to run npm install enter image description here введите описание изображения здесь может потребоваться время, чтобы отобразить кнопку «Выполнить» Npm

  7. Все готово и запустите приложение Node.js

...