Skip to content

Instantly share code, notes, and snippets.

@rskvazh
Created October 1, 2015 09:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rskvazh/bd634f6efc10fd05639d to your computer and use it in GitHub Desktop.
Save rskvazh/bd634f6efc10fd05639d to your computer and use it in GitHub Desktop.
Enable xdebug.remote_autostart in homestead: ~/.homestead/after.sh
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
sudo apt-get -y install mc
echo "PHP: enabling xdebug.remote_autostart"
XDEBUG_FILE="/etc/php5/mods-available/xdebug.ini"
if ! grep -qe "^xdebug.remote_autostart" "$XDEBUG_FILE"; then
sudo echo "xdebug.remote_autostart=1" >> "$XDEBUG_FILE"
fi
@alexpts
Copy link

alexpts commented Oct 22, 2015

Может в readme проекта это закинуть?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment