<commit_before>#!/bin/bash
sed -i "s:SERVICE_NAME:$HOSTNAME:g" /etc/confd/conf.d/unicorn.toml

/usr/bin/confd -onetime -backend consul -node consul:8500 \
	-debug -verbose -config-file /etc/confd/conf.d/unicorn.toml
export RAILS_ENV=$(curl http://consul.gocurb.internal/v1/kv/cf/config/environment?raw)
exec bundle exec unicorn -c /etc/unicorn/unicorn.rb
<commit_msg>use consul hostname<commit_after>#!/bin/bash
sed -i "s:SERVICE_NAME:$HOSTNAME:g" /etc/confd/conf.d/unicorn.toml

/usr/bin/confd -onetime -backend consul -node consul:8500 \
	-debug -verbose -config-file /etc/confd/conf.d/unicorn.toml
export RAILS_ENV=$(curl http://consul:8500/v1/kv/cf/config/environment?raw)
exec bundle exec unicorn -c /etc/unicorn/unicorn.rb

{'fraction_non_alphanumeric': 0.15775034293552812, 'fraction_numerical': 0.019204389574759947, 'mean_word_length': 4.407407407407407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3469513', 'n_tokens_mistral': 308, 'n_tokens_neox': 293, 'n_words': 50}