avatar
Deploy Nodejs Server on Cpanel Hosting Javascript

> First and foremost, follow the article here to get ftp configuration and use git deploy to cpanel hosting.

> Whenever, you tried to Node.js application and get error cPanel Directory public_html not allowed issue. Was that means, folder generated that is same level public_html. For example, ecolmall.com has folder ecolmall as below:

This is where we create a new Node.js application

> Use git ftp init to deploy local project to Cpanel Hosting. Here is what we have in batch mode.

PS C:\Users\admin\Documents\nodejs> git ftp init
10 files to sync:
[1 of 10] Buffered for upload '.gitignore'.
[2 of 10] Buffered for upload 'config/express.js'.
[3 of 10] Buffered for upload 'controllers/MessageController.js'.
[4 of 10] Buffered for upload 'models/Message.js'.
[5 of 10] Buffered for upload 'note.txt'.
[6 of 10] Buffered for upload 'package.json'.
[7 of 10] Buffered for upload 'package-lock.json'.
[8 of 10] Buffered for upload 'README.md'.
[9 of 10] Buffered for upload 'routes/router.js'.
[10 of 10] Buffered for upload 'server.js'.
Uploading ...
Last deployment changed from  to 8ef0899b81db15170ba7060f8c357b21172ff87b.

Note: The project was used in the branch master (link here).

> How to Install Node version on Shared Hosting cPanel? That ensures similarity to current Node version in local machine.

Note: The current version is 10.24.1.

> Just try to Run NPM Install to install all dependencies in package.json.

24
Configure nodejs lambda connect amazon RDS postgres
You need to login to do this manipulation!