Last active
August 29, 2015 14:12
-
-
Save tristola/a8fa9001159ee8b30a32 to your computer and use it in GitHub Desktop.
Gulp file to run proxy and static file webserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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