site-library/scripts
2025-03-12 18:53:16 +01:00
..
.gitignore Initial commit 2025-03-08 21:04:49 +01:00
build.sh Initial commit 2025-03-08 21:04:49 +01:00
deploy.js Initial commit 2025-03-08 21:04:49 +01:00
deploy.sh Initial commit 2025-03-08 21:04:49 +01:00
package-lock.json Initial commit 2025-03-08 21:04:49 +01:00
package.json Initial commit 2025-03-08 21:04:49 +01:00
README.md Initial commit 2025-03-08 21:04:49 +01:00
sync-polymech.sh Initial commit 2025-03-08 21:04:49 +01:00
sync.sh Initial commit 2025-03-08 21:04:49 +01:00
todos-merchant.md Synced from site 2025-03-12 18:53:16 +01:00
todos.md Synced from site 2025-03-12 18:53:16 +01:00
todos.sh Initial commit 2025-03-08 21:04:49 +01:00
todos.ts Initial commit 2025-03-08 21:04:49 +01:00
tools-output.json Initial commit 2025-03-08 21:04:49 +01:00
zip.sh Initial commit 2025-03-08 21:04:49 +01:00

File Deployment Script

A simple deployment script that uses Node-SSH to:

  1. Upload a file from ./releases/dist.zip to /var/vhosts/polymech.io/httpdocs
  2. 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.