Switch Blinko to bun for runtime and seed
Replace Node.js usage with bun across install and control scripts: run /opt/blinko/dist/seed.js with bun during install and update, and start the service with bun using --env-file. Also remove the hardcoded PORT from the generated .env. These changes unify the runtime, ensure migrations and seeding use bun, and load environment variables directly when starting the service.
This commit is contained in:
@@ -53,6 +53,7 @@ function update_script() {
|
||||
mkdir -p /opt/blinko/server/public
|
||||
cp -r /opt/blinko/dist/public/. /opt/blinko/server/public/ 2>/dev/null || true
|
||||
$STD bunx prisma migrate deploy
|
||||
$STD bun /opt/blinko/dist/seed.js
|
||||
msg_ok "Updated Application"
|
||||
|
||||
msg_info "Starting Service"
|
||||
|
||||
Reference in New Issue
Block a user