authserver/homestead/scripts/blackfire.sh
author durandn
Tue, 22 Sep 2015 17:07:01 +0200
changeset 163 f7cc6a0670fd
parent 8 5a0cbbe0922a
permissions -rwxr-xr-x
CurrentSegmentInfobox: Fixed bug where editing a segment would not update the source correctly and mess up with other widgets

#!/usr/bin/env bash

agent="[blackfire]
ca-cert=
collector=https://blackfire.io
log-file=stderr
log-level=1
server-id="$1"
server-token="$2"
socket=unix:///var/run/blackfire/agent.sock
spec=
"

client="[blackfire]
ca-cert=
client-id="$3"
client-token="$4"
endpoint=https://blackfire.io
timeout=15s
"

echo "$agent" > "/etc/blackfire/agent"
echo "$client" > "/home/vagrant/.blackfire.ini"

# Disable xdebug to prevent conflict
php5dismod xdebug
service hhvm restart
service php5-fpm restart
service blackfire-agent restart