generated from polymech/site-template
| .. | ||
| .gitignore | ||
| build.sh | ||
| clear.sh | ||
| commit.sh | ||
| deploy.js | ||
| deploy.sh | ||
| package-lock.json | ||
| package.json | ||
| profile-build.js | ||
| README.md | ||
| serve-products.ts | ||
| sync-creava.sh | ||
| sync.sh | ||
| test-config-loader.ts | ||
| todos-merchant.md | ||
| todos.md | ||
| todos.sh | ||
| todos.ts | ||
| tools-output.json | ||
| zip.sh | ||
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.