WebGL application preview not loading


I have been working on a WebGL project that utilizes three.js. On my local machine everything is fine, however when I attempt to preview the application within my cloud 9 account, the preview is blank and no error messages are shown (on screen or in the appache logs). Has anyone else ran across this issue or know how I might be able to troubleshoot it? Is there a cloud9 specific log file somewhere that I don’t know about? Below is the index.html page I am attempting to load if it helps to see what I’m doing:

<!DOCTYPE html>


    <script type="text/javascript" src="/three.js"></script>
    <script type="text/javascript" src="/MTLLoader.js"></script>
    <script type="text/javascript" src="/OBJLoader.js"></script>
    <script type="text/javascript" src="/OrbitControls.js"></script>
    <script type="text/javascript" src="/stats.js"></script>
        body {
            margin: 0;
            overflow: hidden;

<script type="text/javascript" src="/World.js"></script>
<script type="text/javascript" src="/Client.js"></script>

<script type="text/javascript">
    // Initialize our new world object which will setup our scene, camera, lights, and renderer.
    var world = new World(true);
    var client = new Client();
    // Load the map for this given level. A reference to every model loaded is saved in world.model[*name_of_file*]
    // Render loop. Important stuff happens in here.
    (function render() {
        world.updateRotation(client.key_left, client.key_right);
        world.renderer.render(world.scene, world.camera);

<script src="/controls.js"></script>



Do any errors appear in the browser console? Can see by going to developer tools in chrome. It may be something to do with the assets not loading correctly. Can you also try setting your application to public and see if that fixes it.


Looks like whenever I reference / in my links, the preview is looking at
instead of the document root of my application. For example in my code I have:
<script type="text/javascript" src="/Client.js"></script>
which on my local environment points to my app root. On cloud9 whenever I attempt to preview, the preview browser is trying to load:
On my local environment I have the application running through nginx server with the root directory pointing to, on cloud9 what is my workspace.

Is there a way to resolve this issue without using relative paths? I’m anti relative path :frowning: