chore: use env file for deploy host script

This commit is contained in:
Ayo Ayco 2025-05-17 09:39:11 +02:00
parent 67298c3a7a
commit ad2aecb1da

View file

@ -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/",