NV / chrome-devtools-autosave

Auto-saving CSS and JavaScript changes from the Chrome Developer Tools
MIT License
1.04k stars 89 forks source link

Allow multiple instances #17

Closed drewcovi closed 12 years ago

drewcovi commented 12 years ago

Falling in love with this plugin and using it every day. THANKS!

Currently when trying to run two instances with different routes, I'm running into issues.

Error: listen EADDRINUSE

Is there a way we can assign different ports to listen on so we can map two directories to two different domains?

Or am I doing something wrong?

NV commented 12 years ago

You can use autosave --port some_other_port (it’s documented in autosave --help). I don’t see why do you need that since one routes.js can have as many rules as you want. How your routes file look like?

drewcovi commented 12 years ago

ah perhaps thats where I'm a bit confused. im still getting the error above with the following routes array exports.routes = [ { from: /^http:\/\/domain1.com/, to: '/Volumes/Personal/domains/domain1.com/html' }, { from: /^https:\/\/domain2.com/, to: '/Volumes/Pion/www/domain2.com/htdocs' }];

NV commented 12 years ago

It should work just fine using a single instance. What’s the problem, exactly?

drewcovi commented 12 years ago

oh holy hell :) user error. I had an instance running minimized in my dock.

drewcovi commented 12 years ago

also thanks for your patience :)