fix: flame v3
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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=
|
||||
|
||||
Reference in New Issue
Block a user