mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "6bee7e291ed2894cc056aafb5a59199bd37d6ffe" and "255456008209b9276fa4989c5dca64e6bff3755c" have entirely different histories.
6bee7e291e
...
2554560082
|
@ -18,9 +18,6 @@ update_os
|
|||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y \
|
||||
postgresql \
|
||||
python3 \
|
||||
cmake \
|
||||
g++ \
|
||||
build-essential \
|
||||
curl \
|
||||
sudo \
|
||||
|
@ -39,7 +36,6 @@ $STD apt-get update
|
|||
$STD apt-get install -y nodejs
|
||||
$STD npm install -g pnpm@9.7.1
|
||||
$STD npm install -g pm2
|
||||
export NODE_OPTIONS="--max_old_space_size=4096"
|
||||
msg_ok "Installed Node.js, pnpm & pm2"
|
||||
|
||||
msg_info "Setting up PostgreSQL"
|
||||
|
@ -66,12 +62,9 @@ wget -q "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip"
|
|||
unzip -q v${RELEASE}.zip
|
||||
mv tianji-${RELEASE} /opt/tianji
|
||||
cd tianji
|
||||
$STD pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile
|
||||
$STD pnpm build:static
|
||||
$STD pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false
|
||||
mkdir -p ./src/server/public
|
||||
cp -r ./geo ./src/server/public
|
||||
$STD pnpm build:server
|
||||
export NODE_OPTIONS=--max_old_space_size=4096
|
||||
$STD pnpm install
|
||||
$STD pnpm build
|
||||
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
||||
cat <<EOF >/opt/tianji/src/server/.env
|
||||
DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?schema=public"
|
||||
|
@ -91,9 +84,6 @@ customize
|
|||
|
||||
msg_info "Cleaning up"
|
||||
rm -R /opt/v${RELEASE}.zip
|
||||
rm -rf /opt/tianji/src/client
|
||||
rm -rf /opt/tianji/website
|
||||
rm -rf /opt/tianji/reporter
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
msg_ok "Cleaned"
|
||||
|
|
Loading…
Reference in New Issue