Because you’re trying to run the Cloud9 IDE it’s maybe trying to start a proxy locally? I really don’t know as you’re not doing local development. Maybe the other guys can weigh in.
I’d need this feature too in order to work of two versions on the same site in parallel.
The --port flag is not “transferred” from yarn to browsersync. For example:
$ yarn run start --port 3002
yarn run v0.21.3
$ webpack --hide-modules --watch --config assets/build/webpack.config.js
Webpack is watching the files…
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::3000
Found this PR that allows to use a different proxied URL from the CLI: https://github.com/roots/sage/pull/1849. Might help to find a solution to this problem?
With Sage 8, when starting a new server, it automatically chose a new port if default ones are already being used: localhost:3000 --> localhost:3002 --> … Any idea how to get this behavior back? Any Webpack expert around? EDIT: seems to work only if launching multiple servers in the same folder…
Sorry, didn’t receive a notification for your answer. Of course I can manually change the port, but with Sage 8, I could just launch it and BrowserSync would detect the port conflict and select another. I’m actually dealing with multiple websites each day and it was easier this way.
Hi everyone - did any of you make any more progress with this?
I’m also trying to get Browsersync to run on Cloud9, but haven’t had any luck.
I’m currently running Sage 8.5.2
I’ve set my devUrl in manifest.json to the Cloud9 preview address, and I’ve tried changing the port option in browserSync.init() in gulpfile.js to port 8080, but I still can’t get the Cloud9 preview to update.
Any help is much appreciated - I’m not sure what to try next.