paradoxxxzero / butterfly

A web terminal based on websocket and tornado
http://paradoxxxzero.github.io/2014/02/28/butterfly.html
Other
2.9k stars 309 forks source link

Blank page in browser, 404 for javascripts/main.js #25

Open djoshea opened 10 years ago

djoshea commented 10 years ago

Just installed on mac os via sudo pip install butterfly. Ran butterfly.server.py and visited http://localhost:57575/ in Chrome or Firefox. Blank screen. Looked at source code, found that the request for javascripts/main.js returns 404: Not Found.

Terminal output looks like:

[I 140301 14:23:20 web:1462] 304 GET / (127.0.0.1) 0.64ms
[W 140301 14:23:20 web:1462] 404 GET /static/stylesheets/main.css?v=fb916 (127.0.0.1) 0.41ms
[W 140301 14:23:20 web:1462] 404 GET /static/javascripts/main.js?v=5b7f0 (127.0.0.1) 0.41ms
[W 140302 09:49:43 web:1462] 404 GET /favicon.ico (127.0.0.1) 3.07ms
[W 140302 09:49:47 web:1462] 404 GET /static/javascripts/main.js?v=5b7f0 (127.0.0.1) 0.46ms
[W 140302 09:49:50 web:1462] 404 GET /static/javascripts/main.js (127.0.0.1) 0.28ms

Any ideas?

paradoxxxzero commented 10 years ago

This may be a right issue. Can you try to run it as root ?

ghost commented 9 years ago

I have installed butterfly on a virtual machine and managed to get it working in the same machine(ssl). However if i access the same URL from outside the VM i get the 404: Not Found. All certificates are imported properly and its running as a root.

paradoxxxzero commented 9 years ago

Do you start it with a --host that is resolvable from outside of the vm ?