gulp-connect-php

Gulp-Connect-Php + browserSync + Gulp-Connect address in use issue

醉酒当歌 提交于 2019-12-12 04:35:17
问题 I need an ability to use browserSync with php support and some specific url rewrites. I came up with browserSync with Gulp-Connect-Php packages plus Gulp-Connect + modrewrite. Here is my config: var browserSync = require('browser-sync'), phpconnect = require('gulp-connect-php'), connect = require('gulp-connect'), modrewrite = require('connect-modrewrite'), phpconnect.server({base:'dist/',port: 8010}, function (){ connect.server({ port: 8001, middleware: function() { return [ modrewrite([ '^

Can't use gulp (with gulp-connect-php and gulp-browser-sync) with multiple projects

只愿长相守 提交于 2019-12-10 22:08:44
问题 I've recently started using gulp and have a nice workflow but when I added the gulpfile to a new project, every time I run gulp from the original project directory, it serves the newest project and I have no idea what I've done. This should be the relevant contents of my gulpfile: var gulp = require('gulp'); /* etc. */ gulp.task('default', function(callback) { runSequence(['connect-sync'], callback ) }); gulp.task('connect-sync', function() { connect.server({ base: 'app' /* tried ./app */ },