Files
explore/deploy/scripts/entrypoint.sh
T
tom goriunovandGitHub 7150f93435 image build process improvements (#1045)
* auto-generate .env.production file

* env placeholders congruity check

* refactor yarn dev and docker tasks

* [skip ci] pass git tag and commit sha to dev app

* [skip ci] clean up
2023-08-02 13:32:53 -04:00

13 lines
340 B
Bash
Executable File

#!/bin/bash
# Check run-time ENVs values integrity
node "$(dirname "$0")/envs-validator.js" "$input"
if [ $? != 0 ]; then
echo 🛑 ENV integrity check failed. 1>&2 && exit 1
fi
# Execute script for replace build-time ENVs placeholders with their values at runtime
./replace_envs.sh
echo "starting Nextjs"
exec "$@"