entrypoint.sh 621 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # if you are using windows, you may need to convert the file to unix format
  3. # you can use the Ubuntu terminal to convert this file to unix format
  4. # otherwise, you may get the error after running the docker container
  5. # sudo apt-get install dos2unix
  6. # dos2unix entrypoint.sh
  7. set -e
  8. export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
  9. export NEXT_PUBLIC_EDITION=${EDITION}
  10. export NEXT_PUBLIC_API_PREFIX=${CONSOLE_API_URL}/console/api
  11. export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_API_URL}/api
  12. export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
  13. export NEXT_PUBLIC_SITE_ABOUT=${SITE_ABOUT}
  14. pm2 start ./pm2.json --no-daemon