Spaces:
Running
Running
Download entrypoint.sh from ML-Intern-lab/slackbot-staging: direct link, hf CLI and curl.
- Browser
- Download file 668 Bytes
-
https://huggingface.co/spaces/ML-Intern-lab/slackbot-staging/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/ML-Intern-lab/slackbot-staging/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/ML-Intern-lab/slackbot-staging/resolve/main/entrypoint.sh
668 Bytes
| ENV_LOCAL_PATH=/app/.env.local | |
| if test -z "${DOTENV_LOCAL}" ; then | |
| if ! test -f "${ENV_LOCAL_PATH}" ; then | |
| 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. " | |
| fi; | |
| else | |
| echo "DOTENV_LOCAL was found in the ENV variables. Creating .env.local file." | |
| cat <<< "$DOTENV_LOCAL" > ${ENV_LOCAL_PATH} | |
| fi; | |
| if [ "$INCLUDE_DB" = "true" ] ; then | |
| echo "Starting local MongoDB instance" | |
| nohup mongod & | |
| fi; | |
| export PUBLIC_VERSION=$(node -p "require('./package.json').version") | |
| dotenv -e /app/.env -c -- node --dns-result-order=ipv4first /app/server.js |