The best place to ask programming/development questions, imo. UPDATE: stackoverflow is the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but a great reference for finding answers.

My Music (Nickleus)

20130805

the simplest/easiest web server installation on ubuntu

if you already had python installed on your ubuntu machine, then you're all ready to go! if not, then do this:
sudo apt-get install python

when python is installed, just open a terminal and change directory to the folder where you have some html files you wanna test in a browser, then start the python simple http server:
cd
cd Desktop
python -m SimpleHTTPServer

then open your browser to:
http://localhost:8000

simple as that!

i figured this out because i wanted to test the tlk.io embedded web chat library.

so, in my Desktop folder i made a file called tlkio.html, with the following contents:
<html>
<body>
<div id="tlkio" data-channel="mytestwebchatchannel0192837465" style="width:100%;height:400px;"></div><script async src="http://tlk.io/embed.js" type="text/javascript"></script>
</body>
</html>


so, if i go to this url:
http://localhost:8000/tlkio.html

then i can see that the web chat works.

No comments:

Post a Comment