2022-12-29 20:49:02 +00:00
|
|
|
#! /bin/sh
|
2023-02-06 05:38:06 +00:00
|
|
|
|
|
|
|
if [ "$DB_HOSTNAME_FILE" ]; then
|
|
|
|
export DB_HOSTNAME=$(cat $DB_HOSTNAME_FILE)
|
|
|
|
unset DB_HOSTNAME_FILE
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DB_DATABASE_NAME_FILE" ]; then
|
|
|
|
export DB_DATABASE_NAME=$(cat $DB_DATABASE_NAME_FILE)
|
|
|
|
unset DB_DATABASE_NAME_FILE
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DB_USERNAME_FILE" ]; then
|
|
|
|
export DB_USERNAME=$(cat $DB_USERNAME_FILE)
|
|
|
|
unset DB_USERNAME_FILE
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DB_PASSWORD_FILE" ]; then
|
|
|
|
export DB_PASSWORD=$(cat $DB_PASSWORD_FILE)
|
|
|
|
unset DB_PASSWORD_FILE
|
|
|
|
fi
|
|
|
|
|
2022-12-29 20:49:02 +00:00
|
|
|
exec node dist/apps/microservices/apps/microservices/src/main
|