atom-live-server
atom-live-server copied to clipboard
Atom Live Server Wont Open Other HTML Files
Seems like I can only use LS on a index.html file. If I try running it on any other HTML file other than index it doesn't work. It keeps running the index file.
Same here, I can't open a different index.html from a different project will always come back to the old one.
It's actually the same issue i faced. Try not to have a file named "index.html". Have some other unique names, so when u Stop (Ctrl+Alt+Q) & Start(Ctrl+alt+L) the live server again, you would get the folder listed where you can go to the directory and access that particular file live in the local server. (Example : http://127.0.0.1:3000/filename.html )
In my case, I re-ordered my project files and it worked for me. I think it defaults to the first one on the list. "AHA landing page" was at the bottom and I moved it to the top. (See screenshot). I hope this helps!

@sowmyy Thanks for the comment, I am experiencing the same issue. I am curious though, how long did it take you to figure that out? And what was that process like? I am new to programming and I am amazed at how people find solutions to all kinds of problems and I want to be able to do the same. Thank You.
@sowmyy The solution you provided worked.
1.I gave it a unique name. 2.I then stopped and started the server. 3.I then went to the specific directory and accessed the particular file in the live server.
Thank You.
When I click on a file my Chrome tries to download the file and not open it... must be a Chrome setting.
Just realized it was a php file that wanted to be downloaded. Does LS only work with htm/html files?
@RonR-WebDesign yes
Many thanks,
I have the same issue and I solve it through your suggestion.
@Nerldy I solved it. After the live port server write /filename.html Eg. If your filename is exercise.html and your live server is http://127.0.0.1:9555 then change it to http://127.0.0.1:9555/exercise.html
same issue 😔 server also doesn't run in my case. Instead, install open-in-browser package and run your code on the browser itself