Refactor domain-locker installation and build process
This commit is contained in:
parent
b783a01dd3
commit
06a38ea8ed
@ -33,32 +33,19 @@ function update_script() {
|
|||||||
systemctl stop domain-locker
|
systemctl stop domain-locker
|
||||||
msg_info "Service stopped"
|
msg_info "Service stopped"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker"
|
PG_VERSION="17" setup_postgresql
|
||||||
|
setup_nodejs
|
||||||
|
fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker"
|
||||||
|
|
||||||
msg_info "Updating Domain-Locker"
|
msg_info "Building Domain-Locker"
|
||||||
cd /opt/domain-locker
|
cd /opt/domain-locker
|
||||||
corepack enable
|
npm install --legacy-peer-deps
|
||||||
$STD yarn install --immutable
|
export NODE_OPTIONS="--max-old-space-size=8192"
|
||||||
|
set -a
|
||||||
|
source /opt/domain-locker.env
|
||||||
# Database connection
|
set +a
|
||||||
DL_PG_HOST=localhost
|
npm run build
|
||||||
DL_PG_PORT=5432
|
msg_info "Built Domain-Locker"
|
||||||
DL_PG_USER=postgres
|
|
||||||
DL_PG_PASSWORD=your-password
|
|
||||||
DL_PG_NAME=domain_locker
|
|
||||||
|
|
||||||
# Build + Runtime
|
|
||||||
DL_ENV_TYPE=selfHosted
|
|
||||||
NITRO_PRESET=node_server
|
|
||||||
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=1024"
|
|
||||||
export DL_ENV_TYPE="selfHosted"
|
|
||||||
$STD npm ci --legacy-peer-deps
|
|
||||||
$STD npm run build
|
|
||||||
|
|
||||||
setup_postgresql
|
|
||||||
msg_ok "Updated Domain-Locker"
|
|
||||||
|
|
||||||
msg_info "Restarting Services"
|
msg_info "Restarting Services"
|
||||||
systemctl start domain-locker
|
systemctl start domain-locker
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user