authserver/homestead/scripts/blackfire.sh
author durandn
Fri, 09 Sep 2016 11:01:58 +0200
changeset 196 1b539c9480f9
parent 8 5a0cbbe0922a
permissions -rwxr-xr-x
Imported mdplayer updates + Permalink on each comment (using AnnotationsList and Mediafragment) + view "iframe_hash" that forwards the hash to the iframe to test that the hash jump works properly

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