Skip to content

Commit 6953a77

Browse files
authored
Update Fluid Calendar for v1.2.0 (#3053)
This commit breaks up the npm commands due to some breaking changes. It also modifies the env file to remove deprecated options and adds new ones.
1 parent 7aebd12 commit 6953a77

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

ct/fluid-calendar.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ function update_script() {
4646
cp -rf ${APP}-${RELEASE}/* /opt/fluid-calendar
4747
cd /opt/fluid-calendar
4848
export NEXT_TELEMETRY_DISABLED=1
49-
$STD npm run setup
50-
$STD npm run build
49+
$STD npm install --legacy-peer-deps
50+
$STD npm run prisma:generate
51+
$STD npm run prisma:migrate
52+
$STD npm run build:os
5153
msg_ok "Updated $APP to v${RELEASE}"
5254

5355
msg_info "Starting $APP"

install/fluid-calendar-install.sh

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,30 +59,23 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
5959
cat <<EOF >/opt/fluid-calendar/.env
6060
DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME}"
6161
62-
# For OAuth integration with Google Calendar
63-
# See https://console.cloud.google.com
64-
GOOGLE_CLIENT_ID=""
65-
GOOGLE_CLIENT_SECRET=""
66-
6762
# Change the URL below to your external URL
6863
NEXTAUTH_URL="http://localhost:3000"
64+
NEXT_PUBLIC_APP_URL="http://localhost:3000"
6965
NEXTAUTH_SECRET="${NEXTAUTH_SECRET}"
66+
NEXT_PUBLIC_SITE_URL="http://localhost:3000"
7067
71-
# For optional Outlook Calendar Integration
72-
# Create at https://portal.azure.com
73-
AZURE_AD_CLIENT_ID=""
74-
AZURE_AD_CLIENT_SECRET=""
75-
AZURE_AD_TENANT_ID=""
68+
NEXT_PUBLIC_ENABLE_SAAS_FEATURES=false
7669
77-
# Logging configuration
78-
# Options: debug, none (check logger.js for more details)
79-
LOG_LEVEL="none"
80-
DEBUG_ENABLED=0
70+
RESEND_API_KEY=
71+
RESEND_EMAIL=
8172
EOF
8273
export NEXT_TELEMETRY_DISABLED=1
8374
cd /opt/fluid-calendar
84-
$STD npm run setup
85-
$STD npm run build
75+
$STD npm install --legacy-peer-deps
76+
$STD npm run prisma:generate
77+
$STD npm run prisma:migrate
78+
$STD npm run build:os
8679
msg_ok "Setup ${APPLICATION}"
8780

8881
msg_info "Creating Service"

0 commit comments

Comments
 (0)