2024-01-09 10:31:52 +08:00
|
|
|
#!/bin/bash
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2024-04-26 17:19:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
# if you are using windows, you may need to convert the file to unix format
|
|
|
|
# you can use the Ubuntu terminal to convert this file to unix format
|
|
|
|
# otherwise, you may get the error after running the docker container
|
|
|
|
|
|
|
|
# sudo apt-get install dos2unix
|
|
|
|
# dos2unix entrypoint.sh
|
|
|
|
|
|
|
|
|
2023-05-15 08:51:32 +08:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
|
|
|
|
export NEXT_PUBLIC_EDITION=${EDITION}
|
2024-01-18 14:44:37 +08:00
|
|
|
export NEXT_PUBLIC_API_PREFIX=${CONSOLE_API_URL}/console/api
|
|
|
|
export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_API_URL}/api
|
2023-07-14 11:19:26 +08:00
|
|
|
|
2023-06-13 16:04:54 +08:00
|
|
|
export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
|
2023-10-16 15:26:25 +08:00
|
|
|
export NEXT_PUBLIC_SITE_ABOUT=${SITE_ABOUT}
|
2024-08-12 19:15:41 +08:00
|
|
|
export NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED}
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2024-01-29 18:21:15 +08:00
|
|
|
pm2 start ./pm2.json --no-daemon
|