Skip to content

Commit e1f0bf4

Browse files
committed
cloud_functions: add check
1 parent 2313e5b commit e1f0bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloud_functions/scripts/deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ if [ -z "$PG_DATABASE" ]; then
5959
exit 1
6060
fi
6161

62-
if [ -z "$PG_HOST" ]; then
63-
echo "PG_HOST must be specified"
62+
if [ -z "$PG_HOST" ] || [ "$PG_HOST" == "localhost" ] || [ "$PG_HOST" == "127.0.0.1" ]; then
63+
echo "PG_HOST must be specified correctly"
6464
exit 1
6565
fi
6666

0 commit comments

Comments
 (0)