To view or open an HTML file, or if you are unable to open an index.html file from the command line, do the following:

  1. Make sure you are using the most up to date version of the IDE. You can do so by going to Atom/File --> Check for Update in the IDE menu bar.
  2. Run httpserver from the command line and then navigate to the address your are given, which should look something like this: Serving HTTP on Navigate to in the browser and it should show you the file.

To stop the server from running so you can use the terminal again, just click into the command line and press ctrl + c.

If for some reason the above is not working, you can try adding an Atom package, like which will allow you to right-click and open the file in your default browser.

To access a local development server started in the IDE with the rackup , shotgun , or rails s commands, check out this Help Center article.

Did this answer your question?