Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

APIs

Edmundo Ruiz
Edmundo Ruiz
3,488 Points

ATOM-LIVE-SERVER not working

I HAVE A Surface laptop2 with windows 10. I have chrome and firefox installed. I amtrying to use ATOM as my text editor and down loaded the atom-live-server package. Every time I use the keybinding it opens in microsoft edge and does not display anything but the icons for the files I am trying to load.

8 Answers

Seth Kroger
Seth Kroger
56,414 Points

What sort of project are you doing? The page you're describing is what you'd get from a webserver if there's no index.html file to load. atom-live-server is meant to serve files from an HTML/CSS/JS based webpage, not a backend based project like a PHP or NodeJS based site that would have it's own server.

Edmundo Ruiz
Edmundo Ruiz
3,488 Points

I am trying to load a basic html page just to test run it.

Edmundo Ruiz
Edmundo Ruiz
3,488 Points

<!DOCTYPE html> <html> <head> </head>

<body> <h1>HELLO</h1>

</body>

</html>

Seth Kroger
Seth Kroger
56,414 Points

Is the file named "index.html"?

Edmundo Ruiz
Edmundo Ruiz
3,488 Points

It was named practice.html

Edmundo Ruiz
Edmundo Ruiz
3,488 Points

ok, so that worked. I guess there is a standard name for files specific to a language?

Edmundo Ruiz
Edmundo Ruiz
3,488 Points

How do I get it to open in chrome instead of Microsoft Edge?

Seth Kroger
Seth Kroger
56,414 Points

As I said before the server will look for a file named "index.html" as the default file to serve. If you're getting a list of files your practice.html should be there as a clickable link.