generated from polymech/site-template
662 B
662 B
File Deployment Script
A simple deployment script that uses Node-SSH to:
- Upload a file from
./releases/dist.zipto/var/vhosts/polymech.io/httpdocs - Unzip the file on the server
Prerequisites
- Node.js
- NPM
Installation
npm install
Configuration
Edit the config.json file with your server credentials:
{
"server": {
"host": "your-server-host",
"username": "your-username",
"password": "your-password",
"port": 22
}
}
Usage
npm run deploy
Note
For security, config.json is included in .gitignore to prevent sensitive credentials from being committed to version control.