Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config for routes #3

Closed
NV opened this issue Dec 16, 2011 · 4 comments
Closed

Config for routes #3

NV opened this issue Dec 16, 2011 · 4 comments

Comments

@NV
Copy link
Owner

NV commented Dec 16, 2011

Users shouldn't have to edit index.js just to add a new route.
NV/chrome-devtools-autosave#7

NV added a commit that referenced this issue Dec 16, 2011
Make some progress toward #3.
@NV NV closed this as completed in ab36628 Dec 19, 2011
@sethburtonhall
Copy link

After creating the routes.js file, where should I put it?

@NV
Copy link
Owner Author

NV commented Feb 16, 2012

Wherever you want; you just need to pass a proper path to autosave. For example, routes.js in /usr/local/devtools-autosave/routes.js should be used like this: autosave --config /usr/local/devtools-autosave/routes.js.

@gg4u
Copy link

gg4u commented Apr 1, 2012

Hi, I placed routes in local dir of my site. When launching autosave with that dir, I have a node.js error " Cannot find module '/Users/name/routes.js"

If I place the routes under /Users/name/, it run with no error, but it does not actually save editing to css. No error in console.

Any clue?
On routes.js I placed localhost, not ^file://
If with file:// , I see messages reported on terminal console about successful editing, but i can't see no change on url page..

exports.routes = [
{
from: new RegExp('^http://localhost/~myname/blelbe/'),
to: '/Users/myname/Sites/blelbe/'
}
];

@gg4u
Copy link

gg4u commented Apr 1, 2012

Hello, I've found that:
exports.routes = [
{
from: new RegExp('^file:///Volumes/my_HD/Users/name/Sites/mysite/'),
to: '/Volumes/my_HD/Users/name/Sites/mysite/'
}
];

is saving properly and working only from URL
file:///Volumes/my_HD/Users/name/Sites/mysite/index2.html

I'd like to work from localhost, but It does not work if I change:

exports.routes = [
{
from: new RegExp('^http:///localhost/~/name/Sites/mysite/'),
to: '/Volumes/my_HD/Users/name/Sites/mysite/'
}
];

How to?
thank you very much! almost thtere!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants