fix: flame v2

This commit is contained in:
CrazyWolf13
2026-05-11 14:55:19 +02:00
parent 7ba37052b7
commit 05f0fd4b4d
2 changed files with 8 additions and 3 deletions

View File

@@ -49,8 +49,11 @@ function update_script() {
msg_info "Rebuilding Application"
cd /opt/flame
$STD npm run dev-init
mkdir -p data public
touch public/flame.css public/customQueries.json
$STD npm install
cd /opt/flame/client
$STD npm install
$STD npm run build
cd /opt/flame
cp -r client/build/. public/

View File

@@ -19,13 +19,15 @@ fetch_and_deploy_gh_release "flame" "pawelmalak/flame" "tarball"
msg_info "Setting up Flame"
cd /opt/flame
$STD npm run dev-init
mkdir -p data public
touch public/flame.css public/customQueries.json
$STD npm install
cd /opt/flame/client
$STD npm install
$STD npm run build
cd /opt/flame
cp -r client/build/. public/
$STD npm rebuild sqlite3
touch public/flame.css public/customQueries.json
cat <<EOF >/opt/flame/.env
NODE_ENV=production
PASSWORD=