authserver/homestead/scripts/blackfire.sh
author durandn
Thu, 24 Sep 2015 12:25:05 +0200
changeset 164 b3fe63cdb3fd
parent 8 5a0cbbe0922a
permissions -rwxr-xr-x
Incorportate changes to remie: edition screen headers and button for tag addition for CurrentSegmentInfobox + corresponding style, and fix try for Jquery-ui/lab.js bug

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