Dr.Linux Posted July 28, 2014 Share Posted July 28, 2014 Whenever I double click the HTML file I want for Phaser, It is almost always a black canvas! How do I fix this? I saw a past post about having Linux problems? I run Ubuntu 14.04. Thanks in advance! Link to comment Share on other sites More sharing options...
Dr.Linux Posted July 28, 2014 Author Share Posted July 28, 2014 Update: I am using a HTTP server from python from the Command Line I just tried now, I just can't seem to use it. Now it's a white screen. Will put some images tommorow. Link to comment Share on other sites More sharing options...
valueerror Posted July 28, 2014 Share Posted July 28, 2014 ngingx install is really easy on ubuntu..sudo apt-get install nginxIn your nginx site configuration (/etc/nginx/sites-available/default)Your default web root is located at /usr/share/nginx/www (per the config file). (See root /usr/share/nginx/www;)You could change it toroot /home/user/webroot;To enabel autoindex (easier to browse in the webbrowser) on nginx add:autoindex on;to your location sectionand then...sudo service nginx restart Link to comment Share on other sites More sharing options...
kuuuurija Posted July 28, 2014 Share Posted July 28, 2014 I don't know why you are double clicking the file.. In terminal,cd ~/your_phaser_game_folderpython -m SimpleHTTPServeropen web browser, enterhttp://localhost:8000 valueerror 1 Link to comment Share on other sites More sharing options...
Recommended Posts