diff --git a/install/checkmate-install.sh b/install/checkmate-install.sh index 614533829..6b2d180cc 100644 --- a/install/checkmate-install.sh +++ b/install/checkmate-install.sh @@ -23,17 +23,6 @@ MONGO_VERSION="8.0" setup_mongodb NODE_VERSION="22" setup_nodejs fetch_and_deploy_gh_release "checkmate" "bluewave-labs/Checkmate" -msg_info "Installing Checkmate Server" -cd /opt/checkmate/server -$STD npm install -msg_ok "Installed Checkmate Server" - -msg_info "Installing Checkmate Client" -cd /opt/checkmate/client -$STD npm install -$STD npm run build -msg_ok "Installed Checkmate Client" - msg_info "Configuring Checkmate" JWT_SECRET="$(openssl rand -hex 32)" cat </opt/checkmate/server/.env @@ -51,6 +40,17 @@ VITE_APP_LOG_LEVEL="warn" EOF msg_ok "Configured Checkmate" +msg_info "Installing Checkmate Server" +cd /opt/checkmate/server +$STD npm install +msg_ok "Installed Checkmate Server" + +msg_info "Installing Checkmate Client" +cd /opt/checkmate/client +$STD npm install +$STD npm run build +msg_ok "Installed Checkmate Client" + msg_info "Creating Services" cat </etc/systemd/system/checkmate-server.service [Unit]