BentoPDF: Use simple mode (we don't need all that branding!)
This commit is contained in:
parent
df2619c12a
commit
b2cf946721
@ -40,10 +40,8 @@ function update_script() {
|
|||||||
msg_info "Updating BentoPDF"
|
msg_info "Updating BentoPDF"
|
||||||
cd /opt/bentopdf
|
cd /opt/bentopdf
|
||||||
$STD npm ci --no-audit --no-fund
|
$STD npm ci --no-audit --no-fund
|
||||||
|
export SIMPLE_MODE=true
|
||||||
$STD npm run build -- --mode production
|
$STD npm run build -- --mode production
|
||||||
cp -r /opt/bentopdf/dist/* /usr/share/nginx/html/
|
|
||||||
cp /opt/bentopdf/nginx.conf /etc/nginx/nginx.conf
|
|
||||||
chown -R nginx:nginx {/usr/share/nginx/html,/etc/nginx/tmp,/etc/nginx/nginx.conf,/var/log/nginx}
|
|
||||||
msg_ok "Updated BentoPDF"
|
msg_ok "Updated BentoPDF"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@ -13,23 +13,14 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt-get install -y \
|
|
||||||
nginx
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
fetch_and_deploy_gh_release "bentopdf" "alam00000/bentopdf" "tarball" "latest" "/opt/bentopdf"
|
fetch_and_deploy_gh_release "bentopdf" "alam00000/bentopdf" "tarball" "latest" "/opt/bentopdf"
|
||||||
|
|
||||||
msg_info "Setup BentoPDF"
|
msg_info "Setup BentoPDF"
|
||||||
cd /opt/bentopdf
|
cd /opt/bentopdf
|
||||||
$STD npm ci --no-audit --no-fund
|
$STD npm ci --no-audit --no-fund
|
||||||
|
export SIMPLE_MODE=true
|
||||||
$STD npm run build -- --mode production
|
$STD npm run build -- --mode production
|
||||||
cp -r /opt/bentopdf/dist/* /usr/share/nginx/html/
|
|
||||||
cp /opt/bentopdf/nginx.conf /etc/nginx/nginx.conf
|
|
||||||
mkdir -p /etc/nginx/tmp
|
|
||||||
useradd -M -s /usr/sbin/nologin -r -d /usr/share/nginx/html nginx
|
|
||||||
chown -R nginx:nginx {/usr/share/nginx/html,/etc/nginx/tmp,/etc/nginx/nginx.conf,/var/log/nginx}
|
|
||||||
msg_ok "Setup BentoPDF"
|
msg_ok "Setup BentoPDF"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@ -40,9 +31,8 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=nginx
|
WorkingDirectory=/opt/bentopdf
|
||||||
Group=nginx
|
ExecStart=/usr/bin/npx serve dist -p 8080
|
||||||
ExecStart=/sbin/nginx -g "daemon off;"
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user