site-library/scripts
2025-12-27 09:25:38 +01:00
..
.gitignore Initial commit 2025-03-08 21:04:49 +01:00
build.sh latest 2025-03-30 21:17:10 +02:00
commit.sh stuff like that :) 2025-12-26 18:54:44 +01:00
deploy.js Initial commit 2025-03-08 21:04:49 +01:00
deploy.sh just great :) 2025-03-31 09:34:40 +02:00
generate-app-config.ts stuff like that :) 2025-12-26 18:54:44 +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
profile-build.js astro build profiler 2025-03-31 18:47:37 +02:00
README.md Initial commit 2025-03-08 21:04:49 +01:00
serve-products.ts stuff like that :) 2025-12-26 18:54:44 +01:00
sync-creava.sh pocketbase | icons 2025-03-30 10:42:28 +02:00
sync.sh Initial commit 2025-03-08 21:04:49 +01:00
test-config-loader.ts config 2025-12-27 09:25:38 +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.