fix service case; move frontend files
This commit is contained in:
parent
45e836f41c
commit
7e42c4d955
@ -50,7 +50,7 @@ function update_script() {
|
|||||||
unset NODE_ENV
|
unset NODE_ENV
|
||||||
cd /opt/nextExplorer/
|
cd /opt/nextExplorer/
|
||||||
mv backend/{node_modules,src,package.json} "$APP_DIR"
|
mv backend/{node_modules,src,package.json} "$APP_DIR"
|
||||||
mv frontend/dist/ "$APP_DIR"/public
|
mv frontend/dist/ "$APP_DIR"/src/public
|
||||||
msg_ok "Updated nextExplorer"
|
msg_ok "Updated nextExplorer"
|
||||||
|
|
||||||
msg_info "Starting nextExplorer"
|
msg_info "Starting nextExplorer"
|
||||||
|
|||||||
@ -42,7 +42,7 @@ unset NODE_ENV
|
|||||||
|
|
||||||
cd /opt/nextExplorer
|
cd /opt/nextExplorer
|
||||||
mv backend/{node_modules,src,package.json} "$APP_DIR"
|
mv backend/{node_modules,src,package.json} "$APP_DIR"
|
||||||
mv frontend/dist/ "$APP_DIR"/public
|
mv frontend/dist/ "$APP_DIR"/src/public
|
||||||
msg_ok "Built nextExplorer"
|
msg_ok "Built nextExplorer"
|
||||||
|
|
||||||
msg_info "Configuring nextExplorer"
|
msg_info "Configuring nextExplorer"
|
||||||
@ -113,7 +113,7 @@ chmod 600 /etc/nextExplorer/.env
|
|||||||
msg_ok "Configured nextExplorer"
|
msg_ok "Configured nextExplorer"
|
||||||
|
|
||||||
msg_info "Creating nextExplorer Service"
|
msg_info "Creating nextExplorer Service"
|
||||||
cat <<EOF >/etc/systemd/system/nextExplorer.service
|
cat <<EOF >/etc/systemd/system/nextexplorer.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=nextExplorer Service
|
Description=nextExplorer Service
|
||||||
After=network.target
|
After=network.target
|
||||||
@ -131,7 +131,7 @@ StandardError=journal
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
$STD systemctl enable -q --now nextExplorer
|
$STD systemctl enable -q --now nextexplorer
|
||||||
msg_ok "Created nextExplorer Service"
|
msg_ok "Created nextExplorer Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user