#!/usr/bin/env bash


envsubst \
    '\$TRAVEL_DEPLOY_APPLICATION' \
    < /etc/nginx/conf.d/01-accesslog-tskv.conf > temp.conf \
    && mv temp.conf /etc/nginx/conf.d/01-accesslog-tskv.conf

envsubst '\$TRAVEL_DEPLOY_HTTP_PORT' < /etc/nginx/listen > listen.temp \
    && mv listen.temp /etc/nginx/listen
