diff --git a/ct/flame.sh b/ct/flame.sh index 7dbc5e7e..7e4aeeac 100644 --- a/ct/flame.sh +++ b/ct/flame.sh @@ -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" diff --git a/install/flame-install.sh b/install/flame-install.sh index 122b5176..8f592243 100644 --- a/install/flame-install.sh +++ b/install/flame-install.sh @@ -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 </opt/flame/.env NODE_ENV=production PASSWORD=