fix: fixed build script

This commit is contained in:
Kerod-Fresenbet-Gebremedhin2660 2026-02-24 18:09:44 +03:00
parent fde4ffe9d0
commit 6075d449e7
2 changed files with 17 additions and 1 deletions

16
deploy-service.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
echo "📦 Copying updated service file to server..."
scp yimaru-cd.service yimaru@yimaru_serv:/tmp/
echo "🔧 Installing and restarting service..."
ssh yimaru@yimaru_serv << 'REMOTE'
sudo mv /tmp/yimaru-cd.service /etc/systemd/system/yimaru-cd.service
sudo systemctl daemon-reload
sudo systemctl restart yimaru-cd
echo "✅ Service restarted"
sudo systemctl status yimaru-cd --no-pager -l
REMOTE
echo "✅ Deployment complete"

View File

@ -4,7 +4,7 @@
"type": "module", "type": "module",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "bun build index.ts --outdir yimaru_admin --target bun" "build": "bun build index.ts --outdir dist --target bun"
}, },
"devDependencies": { "devDependencies": {
"@types/bun": "latest" "@types/bun": "latest"