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:
- 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.
httpserverfrom the command line and then navigate to the address your are given, which should look something like this:
Serving HTTP on 220.127.116.11:3107.Navigate to
18.104.22.168:3107in 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 https://atom.io/packages/open-html-in-browser 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
shotgun , or
rails s commands, check out this Help Center article.