Hi guys, I just started using playcanvas and wanna try it with azure.
I published my game(just a very simple scene) like,
1) Go to publish/download
2) Go to download
3) Go to web download
4) Download the zip file
After this, I unzipped the downloaded file, and uploaded all things(including index, config, logo and others ) from the zip file to my fps server on Azure. Then I checked the game on Azure with browser
(this is the url, http://playcanvascompatitytest.chinacloudsites.cn/). The playcanvas logo flashed once on the screen, and then nothing happened, all I could see is a black screen as below
I guess there should be mothing things I need to do to host playcanvas game on Azure, instead of just uploading all game fies to the Azure fps server. May anyone plz help me?
This problem is caused by that Azure doesn't load json files successfully for some unknown reasons. I checked the FTP wwwroot directory, and every needed file is just right there, but got this error (from max's testing)
GET http://playcanvascompatitytest.chinacloudsites.cn/config.json 404 (Not Found)
GET http://playcanvascompatitytest.chinacloudsites.cn/514216.json 404 (Not Found)
Error requesting scene: 514216.json
This error tells Azure doesn't load json files but is ok with others. For solving this, I ftp a config file called web.config into wwwroot, like,
<mimeMap fileExtension=".json" mimeType="application/json" />
It basically tells server to adds json files back. With this config file, my playcanvas game finally can run on Azure successfully.
Hope this can do something help if you got the same problem.
And Thx for max's tip!