NV / chrome-devtools-autosave

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

routes.js #14

Closed rahulan closed 12 years ago

rahulan commented 12 years ago

I'm on Mac. I've mount my remote server files with SSHFS on my Mac locally.

the path is /Volumes/root@my.IP.address/my.domain.name/new/basic/css/style.css

server path is file://localhost/Volumes/root@my.IP.address//my.domain.name/new/basic/css/style.css

how will my route.js will look like and where do I save routes.js file?

Thanks.

Sri

NV commented 12 years ago

file://localhost/Volumes/root@my.IP.address//my.domain.name/new/basic/css/style.css

Did you mean http://my.domain.name/new/basic/css/style.css? If so, here it goes:

Open chrome://extensions → DevTools autosave → Options Add the following rule: Resource ^http://my.domain.name/ Post to http://127.0.0.1:9104/save

how will my routes.js will look like

exports.routes = [{
    from: /^http:\/\/my\.domain\.name\//,
    to: '/Volumes/root@my.IP.address/my.domain.name/'
}];

where do I save route.js file

You can save it in you home directory and then run autosave --config ~/routes.js. You can save routes.js wherever you want as long as you pass the right path to the autosave --config.

You may have permission errors. If so, read on http://jann.is/daily/archives/757-ExtraAdvanced-options-for-MacFuseMacFusion.html

NV commented 12 years ago

routes.js is deprecated. Now you can configure "Save to" path in the extension’s options:

New Options UI.