fix: flame v3
This commit is contained in:
@@ -50,14 +50,12 @@ function update_script() {
|
|||||||
msg_info "Rebuilding Application"
|
msg_info "Rebuilding Application"
|
||||||
cd /opt/flame
|
cd /opt/flame
|
||||||
mkdir -p data public
|
mkdir -p data public
|
||||||
touch public/flame.css public/customQueries.json
|
$STD npm install --production
|
||||||
$STD npm install
|
|
||||||
cd /opt/flame/client
|
cd /opt/flame/client
|
||||||
$STD npm install
|
$STD npm install --production
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
cd /opt/flame
|
cd /opt/flame
|
||||||
cp -r client/build/. public/
|
cp -r client/build/. public/
|
||||||
$STD npm rebuild sqlite3
|
|
||||||
msg_ok "Rebuilt Application"
|
msg_ok "Rebuilt Application"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@@ -13,6 +13,12 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
python3
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "flame" "pawelmalak/flame" "tarball"
|
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"
|
msg_info "Setting up Flame"
|
||||||
cd /opt/flame
|
cd /opt/flame
|
||||||
mkdir -p data public
|
mkdir -p data public
|
||||||
touch public/flame.css public/customQueries.json
|
$STD npm install --production
|
||||||
$STD npm install
|
|
||||||
cd /opt/flame/client
|
cd /opt/flame/client
|
||||||
$STD npm install
|
$STD npm install --production
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
cd /opt/flame
|
cd /opt/flame
|
||||||
cp -r client/build/. public/
|
cp -r client/build/. public/
|
||||||
$STD npm rebuild sqlite3
|
|
||||||
cat <<EOF >/opt/flame/.env
|
cat <<EOF >/opt/flame/.env
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
PASSWORD=
|
PASSWORD=
|
||||||
|
|||||||
Reference in New Issue
Block a user