File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -247,7 +247,8 @@ async function main () {
247247 Env : [
248248 `LETSENCRYPT_HOST=${ hostname } ` ,
249249 `VIRTUAL_HOST=${ hostname } ` ,
250- `VIRTUAL_PORT=8000`
250+ `VIRTUAL_PORT=8000` ,
251+ `PGHOST=dt-db-${ branch } `
251252 ] ,
252253 Labels : {
253254 appversion : `${ argv . appversion } ` ?? '0.0.0' ,
Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ echo "Creating data directories..."
2222chmod +x ./app-create-dirs.sh
2323./app-create-dirs.sh
2424
25- echo " Altering PG search path..."
26- psql -U django -h db -d ietf -v ON_ERROR_STOP=1 -c ' \x' -c ' ALTER USER django set search_path=ietf_utf8,django,public;'
25+ if [ -n " $PGHOST " ]; then
26+ echo " Altering PG search path..."
27+ psql -U django -h $PGHOST -d ietf -v ON_ERROR_STOP=1 -c ' \x' -c ' ALTER USER django set search_path=ietf_utf8,django,public;'
28+ fi
2729
2830echo " Running Datatracker checks..."
2931./ietf/manage.py check
You can’t perform that action at this time.
0 commit comments