HTML host file with ngrok

Is it possible to host an HTML file with NGROK instead of a web application? I don't know anything about NGROK, I just used it to host the server for the Twilio application, and I want to use it to host the HTML file for my other project. Also, does anyone know how to create an HTML file on a Mac? Thanks in advance. Or, if I can’t use NGROK, someone knows something simple and free, this is what I can use to host an HTML file on my computer. I need to be able to modify the file in real time, so google sites and the like are out of the question.

+4
source share
1 answer

No. ngrok only tunnels traffic, so it cannot actually serve the HTML file for you.

You can, however, easily maintain a file directory. One of the fastest ways to start a server is to use python. From the command line cdto the directory containing your HTML files, and run:

$ python -m SimpleHTTPServer

Or for python3 (not installed by default for OS X):

$ python -m http.server

Then run in another terminal ngrok.

+15
source

Source: https://habr.com/ru/post/1539071/


All Articles