Download bin/docker-entrypoint from denise-oneill-inbox-ru/Rails-8-API-Image-Processing: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/bin/docker-entrypoint
- Command line
-
hf download hf://spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/bin/docker-entrypoint
-
curl -L -o docker-entrypoint https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/bin/docker-entrypoint
350 Bytes
| if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then | |
| : "${DATABASE_URL:?DATABASE_URL is required for production server boot}" | |
| : "${DATABASE_URL_UNPOOLED:?DATABASE_URL_UNPOOLED is required for production database preparation}" | |
| DATABASE_URL="${DATABASE_URL_UNPOOLED}" ./bin/rails db:prepare | |
| fi | |
| exec "${@}" | |