diff --git a/ct/puter.sh b/ct/puter.sh index 870a21ec..53030db3 100644 --- a/ct/puter.sh +++ b/ct/puter.sh @@ -39,10 +39,7 @@ function update_script() { msg_info "Building Application" cd /opt/puter $STD npm ci - cd /opt/puter/src/gui $STD npm run build - cd /opt/puter - cp -r src/gui/dist dist msg_ok "Built Application" msg_info "Starting Service" diff --git a/install/puter-install.sh b/install/puter-install.sh index 6c6d2af5..1ab020dd 100644 --- a/install/puter-install.sh +++ b/install/puter-install.sh @@ -26,13 +26,8 @@ fetch_and_deploy_gh_release "puter" "HeyPuter/puter" "tarball" msg_info "Building Application" cd /opt/puter -node -e "const f=require('fs'),p=JSON.parse(f.readFileSync('package.json'));p.overrides={'better-sqlite3':'>=12.0.0'};f.writeFileSync('package.json',JSON.stringify(p,null,2))" -rm -f package-lock.json -$STD npm install -cd /opt/puter/src/gui +$STD npm ci $STD npm run build -cd /opt/puter -cp -r src/gui/dist dist msg_ok "Built Application" msg_info "Creating Directories" @@ -67,8 +62,8 @@ After=network.target Type=simple User=root WorkingDirectory=/opt/puter -Environment=CONFIG_PATH=/etc/puter -ExecStart=/usr/bin/npm start +Environment=PUTER_CONFIG_PATH=/etc/puter/config.json +ExecStart=/usr/bin/node --enable-source-maps -r /opt/puter/dist/src/backend/telemetry.js /opt/puter/dist/src/backend/index.js Restart=on-failure RestartSec=5 diff --git a/json/blinko.json b/json/blinko.json index 70f3508f..b7b3a570 100644 --- a/json/blinko.json +++ b/json/blinko.json @@ -41,4 +41,4 @@ "type": "warning" } ] -} +} \ No newline at end of file diff --git a/json/invidious.json b/json/invidious.json index 5a8837e1..17c914a3 100644 --- a/json/invidious.json +++ b/json/invidious.json @@ -37,4 +37,4 @@ "type": "info" } ] -} +} \ No newline at end of file diff --git a/json/paperclip.json b/json/paperclip.json index 187f8a67..b60c621d 100644 --- a/json/paperclip.json +++ b/json/paperclip.json @@ -45,4 +45,4 @@ "type": "info" } ] -} +} \ No newline at end of file