-
Notifications
You must be signed in to change notification settings - Fork 89
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
Run on http://localhost/ instead of the file:// scheme #7
Comments
What do you mean by |
If
and then run
Change the resource field from |
I mean that the files are on my file system. The CSS and JS files are included via link attribute () |
It works. Awesome! Now I can edit css and js files directly on the server. |
Great! I'll close it then. |
this is my route.js exports.routes = [{ but it's not working |
Looks about right. I need more details. What do you see in the terminal? What do you see in the extension log (how to open it)? |
It working now. I had to change to: 'C:\Users\jitendra\Dropbox\htdocs>' to this |
It works with your example which is having link rel=stylesheet href=style.css" but in my case it's link rel="stylesheet" href="theme/a/css/default.css" so it's not working. |
It probably writes to some other file. Again, what do you see in the terminal? |
Hello, I was wondering how to configure this on osx(10.6.8) when my path is localhost/~myname ... it gives this error:DevTools Autosave 0.2.3 is listening on http://127.0.0.1:9104 ENOENT, no such file or directory '/Users/myname/Sites/~myname/example/style.css'I guess I would have to delete ~myname after sites since it's working when I use the file:// methode. Thanks in advance! |
How does URL for style.css look? |
Hi. Thanks for repyling. From my browser: I've tried this, among many others, for resource: Terminal Terminal |
routes.js: exports.routes = [{
from: /^http:\/\/localhost\/~/,
to: '/Users/'
}]; |
Great, after some fiddling it now works, I used it to test with Drupal and it works like a charm. Thank you so much. In Chrome -> Extensions -> Autosave -> Options In routes.js //which is in my 'Home path' /Users/guus/routes.js exports.routes = [{ |
What should I do when I want to edit e.g. 'http://localhost/testsite' located in '/Users/twan/Dropbox/sites/testsite' ? my routes.js file is located in '/Users/twan/Dropbox/sites/' and contains the following code : In google chrome preferences > extensions > autosave > options I've set I'm running MAMP on Mac OS X 10.7.2 |
never mind, i fixed it! woohoo :) In the file you edit you have to include the following line inside your head <script> <script src="_js/autosave.js?sha=1a2c7a6b8c3cbf6f"></script> </script>the autosave.js contains the following code: 'use strict'; window.addEventListener('load', function(event) { |
No, you don’t have to include this file. It’s just an example used for screencast. |
To get this to work for me, I had to add a rule in the extension options for ^http://localhost |
This is a good idea. Although, my current goal is to eliminate the server. It would make all these irrelevant (and drastically simpler). |
Wow this is really cool, |
Any idea how to setup this to work with Rails Assets Pipeline files knowing that here are multiple assets in multiple folders? |
would be nice to do something like this for a live server since I use a development sandbox with my host rather than loading down my local workstation with ported server apps.../apache/php/mysql. Am I missing something or am I correct in local server only? my host won't let me run but a few types of cron jobs since my dev server is shared, but couldn't a scripted version developed and be included in the html somehow? i.e. put autosave.js or autosave.php on your server and call/reference it in your < head > area ? I use a php file browser/editor that let's me update files on my hosted server much like my cpanel file manager. ...eXtplorer which works great but my workflow now is using that in one tab while my dev tool'd page is open in another. |
Is there a way to call a routes.js that creates a connection to my hosted server? I would imagine ftp to be kind of slow for an autosave however...I'm sure a manual sync option like CSSUpdater would suffice but a quick autosave is even sweeter! Eagerly awaiting some input on this as I can't be the only one interested in this method. |
@pingram3541 brief instructions would be:
|
Would it be possible to get a general how to on setting this up with my host as a cron job? Is that possible? |
I don’t see why do you need a cron job at all. You might want to run Autosave on a system launch. On Linux you’ll need to create a script in /etc/init.d that runs |
Because my server is not local, it's a shared host @ justhost.com for like $3 per month but it works fine for my blog and dev environment. Doesn't devtools autosave require the node.js to be installed on the server and the autosave script run from the server's command line? Am I really missing something? I am a bit under-slept. =)~ |
There are two options:
|
So if my host restricts SSH access to the server do I have any other options? I also use a windows workstation and rsync was the only client that looked like something I could use, granted my host allowed SSH access but again, it's a shared server so they are very restrictive. |
All I mentioned above applies to SSH, but you can mount a disk using Samba or (probably) FTP as well. |
Found a free ftp sync program called bestsync which works pretty quickly...and syncs the changes both ways... |
I'm running autosave with custom config file.
My files are under /var/www/* |
Hi.
I want to use the autosave extension for developing websites that aren't available via file:// because they use PHP.
I use MAMP as a PHP server.
The website now is available under http://localhost/index.php.
The files are available under /Volumes/test/index.php
I don't know how what 'Resource' and 'Post to' options to use for this scenario.
Thanks.
The text was updated successfully, but these errors were encountered: