fix: flame v3

This commit is contained in:
CrazyWolf13
2026-05-11 14:58:52 +02:00
parent 05f0fd4b4d
commit 7b63a740e4
2 changed files with 10 additions and 8 deletions

View File

@@ -50,14 +50,12 @@ function update_script() {
msg_info "Rebuilding Application"
cd /opt/flame
mkdir -p data public
touch public/flame.css public/customQueries.json
$STD npm install
$STD npm install --production
cd /opt/flame/client
$STD npm install
$STD npm install --production
$STD npm run build
cd /opt/flame
cp -r client/build/. public/
$STD npm rebuild sqlite3
msg_ok "Rebuilt Application"
msg_info "Starting Service"

View File

@@ -13,6 +13,12 @@ setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
build-essential \
python3
msg_ok "Installed Dependencies"
NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "flame" "pawelmalak/flame" "tarball"
@@ -20,14 +26,12 @@ fetch_and_deploy_gh_release "flame" "pawelmalak/flame" "tarball"
msg_info "Setting up Flame"
cd /opt/flame
mkdir -p data public
touch public/flame.css public/customQueries.json
$STD npm install
$STD npm install --production
cd /opt/flame/client
$STD npm install
$STD npm install --production
$STD npm run build
cd /opt/flame
cp -r client/build/. public/
$STD npm rebuild sqlite3
cat <<EOF >/opt/flame/.env
NODE_ENV=production
PASSWORD=