# The new relic key cannot be created during build time since the environment
# variables are not available yet. So we build it every time the server
# restarts (which is a good thing.)
newrelic-admin generate-config ${NEW_RELIC_LICENSE_KEY} /var/app/newrelic.ini
sed -i "s/app_name\ =\ Python\ Application/app_name\ =\ $NEW_RELIC_APP_NAME/g" /var/app/newrelic.ini

# Launch supervisord.
/usr/bin/supervisord
