gulp-connect-php
gulp-connect-php copied to clipboard
Directory ../ does not exist.
/project
/assets
/sources
gulpfile.js
package.json
index.php
I currently have all of my gulp and npm related files inside a "sources" folder. I am wanting to declare my base directory one layer up
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')(),
connect = new plugins.connectPhp(),
browserSync = require('browser-sync').create();
gulp.task('connect', function() {
connect.server({ base: '../', port: 8010}, function(){
browserSync.init({
proxy: '127.0.0.1:8010',
notify: false,
port: 8080
});
});
});
I don't receive any errors that kill the process but it does console the following:
Directory ../ does not exist.
I am on Windows 10 and am currently using the following package versions:
"gulp": "*",
"gulp-connect-php": "^1.0.1",
"browser-sync": "^2.18.13"
What's odd is that this same exact setup works perfectly fine on my Mac. I'm not sure why Windows is having problems.
SOLUTION:
I figured it out. To go back a directory you want use "../."
You may close this issue.
Actually, it has me curious. Ill play with it and see if i can figure out why. ... im not sure id expect a user to realize that and if its simple itll be best that people dont bang their heads.