From ad2aecb1da43ef80962857be28a8ed5174902ae7 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 17 May 2025 09:39:11 +0200 Subject: [PATCH] chore: use env file for deploy host script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bf3e016..3158de0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint . --config eslint.config.mjs --cache", "format": "prettier . --write", "check": "npm run format && npm run lint", - "deploy": "scp -r dist ayo@ayco.io:~/ayco.io-flask", + "deploy": "eval $(grep '^HOST' .env) && scp -r dist ayo@$HOST:~/ayco.io-flask", "build:preview": "npm run build && astro preview", "build:deploy": "npm run build && npm run deploy", "copy:dist": "npm run build && cp -R dist ../ayco.io-flask/",