Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

entrypoint.sh 674 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  1. ENV_LOCAL_PATH=/app/.env.local
  2. if test -z "${DOTENV_LOCAL}" ; then
  3. if ! test -f "${ENV_LOCAL_PATH}" ; then
  4. echo "DOTENV_LOCAL was not found in the ENV variables and .env.local is not set using a bind volume. Make sure to set environment variables properly. "
  5. fi;
  6. else
  7. echo "DOTENV_LOCAL was found in the ENV variables. Creating .env.local file."
  8. cat <<< "$DOTENV_LOCAL" > ${ENV_LOCAL_PATH}
  9. fi;
  10. if [ "$INCLUDE_DB" = "true" ] ; then
  11. echo "Starting local MongoDB instance"
  12. nohup mongod &
  13. fi;
  14. export PUBLIC_VERSION=$(node -p "require('./package.json').version")
  15. dotenv -e /app/.env -c -- node /app/build/index.js -- --host 0.0.0.0 --port 3000
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...