Script to deploy build results of Vite (React or Vue) through FTP to your cPanel hosting.
-
Clone this repo
-
Install Deps (
npm install) -
Duplicate
.env.sampleto just.envand populate values -
After making changes in the Vite repo in your local machine, or when ready to deploy, build the project (
npm run build) IN THE PROJECT'S folder. -
Come back to this
deploy-vitedirectory and run the script (node index.js) and voila!!!