Live Edit on virtual host - not localhost

Hi,

I use different vhost on my local computer for developing.

Now I named them websitename.localhost (websitename is the name of the real website - so all my local domains are "subdomains" from localhost).

So live edit works. But know need to name them not *.localhost - i want to use *.myComputerName

Is it possible to tell phpStorm, to look for a String like "myComputer" in the url instead of looking for "localhost"?

That would be very nice.

(and later it would be nice, to define the url for liveedit for every project).

Thank you

cu

8 comments
Comment actions Permalink

I'm developing on a server based in my local network, my servername is:

http://this.is.fake.local

I added an fake server name, but as you can see I'm using the .local extension on my local network and this is working great, live editing is working correctly.


// T

0
Comment actions Permalink

Thank you,

now I use this pattern:

NameOffWebsite.Company.TestServerInLocalNet.local

and it works fine

Thank you very munch!

cu

0
Comment actions Permalink

You're welcome :)

// T

0
Comment actions Permalink

Hey, this works for me too, great find!
However, I do find it a little concerning that doing something like local.my.fake.localhost.com doesn't work.  This chrome extension just seems a little too buggy for realtime, IMHO.

0
Comment actions Permalink

Hi Jim,

What IP assigned to your local.my.fake.localhost.com ?

ping local.my.fake.localhost.com should tell you this. Is it 127.0.0.1 or something like 192.168.x.x / 10.x.x.x/etc ?

0
Comment actions Permalink

Hi Andriy,
The URL ping is resolving to 127.0.0.1. which is good because that's what I have the domain set to in my hosts file. ;)
What are your thoughts?
Thanks,
Jim

0
Comment actions Permalink

It does not work for me with 127.0.0.1 as well.

Edit your hosts file and point it to the "real" IP: 192.168.x.x (or whatever your local IP is). This works fine for me. If this will work for you as well, then apparently 127.0.0.1 does not belong local IP addresses (treated as "external"??) accordingly to the devs.

0
Comment actions Permalink

Huh, that's pretty interesting.  Thanks for the info/assist!

0

Please sign in to leave a comment.