Hello, I am using gulp-connect-php on a lot of different projects to serve up my PHP pages. Sometimes I would start one server on one project, and then have to switch to a different project. I make sure to close the connection by ending the gulp task. However, when I switch to the different project and run my gulp task, the connection opens the previous site instead.
So far, the only way I can close off the connection completely is to restart my computer. That is not practical in the long run. How can I make it so that previous connection ends completely and loads the appropriate site? Thank you in advance.
Below is an example of my gulp task.
gulp.task('connect', function () {
connect.server({
root: 'src',
livereload: true
});
});
gulp.task('connectSync', ['connect'], function () {
connectPhp.server({}, function () {
browserSync({
proxy: 'localhost:8000',
open: {
browser: 'Google Chrome'
}
});
});
});
Hello, I am using
gulp-connect-phpon a lot of different projects to serve up my PHP pages. Sometimes I would start one server on one project, and then have to switch to a different project. I make sure to close the connection by ending the gulp task. However, when I switch to the different project and run my gulp task, the connection opens the previous site instead.So far, the only way I can close off the connection completely is to restart my computer. That is not practical in the long run. How can I make it so that previous connection ends completely and loads the appropriate site? Thank you in advance.
Below is an example of my gulp task.