Skip to content

Instantly share code, notes, and snippets.

@tristola
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tristola/a8fa9001159ee8b30a32 to your computer and use it in GitHub Desktop.
Save tristola/a8fa9001159ee8b30a32 to your computer and use it in GitHub Desktop.
Gulp file to run proxy and static file webserver
var gulp = require('gulp');
var webserver = require('gulp-webserver');
gulp.task('default', function() {
gulp.src( './' )
.pipe(webserver({
host: 'localhost',
port: '8888',
livereload: true,
directoryListing: false,
proxies: [{
source: '/myappdeploydir/resources',
target: 'http://localhost:8088/myappdeploydir/resources'
},
{
source: '/anotherservice',
target: 'http://commondevelopmentserver:8080/anotherservice'
}]
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment