Skip to content

Commit d24308a

Browse files
authored
Manage My Damn Life: use NodeJS 22 (#7861)
1 parent 584365f commit d24308a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ct/managemydamnlife.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ function update_script() {
3535

3636
msg_info "Creating Backup"
3737
cp /opt/mmdl/.env /opt/mmdl.env
38+
rm -rf /opt/mmdl
3839
msg_ok "Backup Created"
3940

4041
fetch_and_deploy_gh_release "mmdl" "intri-in/manage-my-damn-life-nextjs" "tarball"
42+
NODE_VERSION="22" setup_nodejs
4143

4244
msg_info "Configuring ${APP}"
4345
cd /opt/mmdl
46+
export NEXT_TELEMETRY_DISABLED=1
4447
$STD npm install
4548
$STD npm run migrate
4649
$STD npm run build

install/managemydamnlife-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ msg_info "Installing dependencies"
1717
$STD apt-get install --no-install-recommends -y build-essential
1818
msg_ok "Installed dependencies"
1919

20-
NODE_VERSION="20" setup_nodejs
20+
NODE_VERSION="22" setup_nodejs
2121
MYSQL_VERSION="8.0" setup_mysql
2222

2323
msg_info "Setting up Database"
@@ -48,7 +48,7 @@ sed -i -e 's|db|localhost|' \
4848
-e "s|=PASSWORD|=$(openssl rand -base64 40 | tr -dc 'a-zA-Z0-9' | head -c40)|" \
4949
/opt/mmdl/.env
5050
cd /opt/mmdl
51-
export NEXT_TELEMETRY_DISABLE=1
51+
export NEXT_TELEMETRY_DISABLED=1
5252
export CI="true"
5353
$STD npm install
5454
$STD npm run migrate

0 commit comments

Comments
 (0)