Skip to content

keepdeploying/deploy-nodejs-build-ftp-cpanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Express/Node.js Server to FTP (CPanel)

Script to deploy Express/Node.js server builds through FTP to your cPanel hosting.

What it deploys

This script specifically uploads:

  • lib/ folder (compiled server code) (you can update the folder name)
  • package.json (dependencies)
  • package-lock.json (dependency lock file)

Steps

  1. Clone this repo

  2. Install Deps (npm install)

  3. Duplicate .env.sample to just .env and populate values

  4. After making changes in your Express/Node.js project, build it (e.g., npm run build) IN THE PROJECT'S folder.

  5. Come back to this deploy-nodejs-backend directory and run the script (node index.js) and voila!!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors