authserver/homestead/scripts/blackfire.sh
author ymh <ymh.work@gmail.com>
Thu, 16 Jul 2015 02:28:38 +0200
changeset 16 ad85999dd05c
parent 8 5a0cbbe0922a
permissions -rwxr-xr-x
updrade various libs

#!/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