Skip to content

Instantly share code, notes, and snippets.

@tonifisler
Created March 9, 2014 09:14
Show Gist options
  • Save tonifisler/9444947 to your computer and use it in GitHub Desktop.
Save tonifisler/9444947 to your computer and use it in GitHub Desktop.
Gulp Browser-sync
var browserSync = require('browser-sync');
gulp.task('browser-sync', function() {
browserSync.init(['style.css', '*.php'], {
proxy: {
host: 'site.dev',
port: '80'
}
});
});
NameVirtualHost *:80
<VirtualHost *:80>
ServerName site.dev
DocumentRoot "/Users/me/Sites/wp-site"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment