Search code examples
rippleblackberry-10

run bb10 sample app on ripple emulator (mac os x)


I followed the instruction at: https://developer.blackberry.com/html5/documentation/use_the_ripple_emulator_chrome_extension_2007542_11.html

to run remote site app project, it works. But when I tested sample (bbui.js sample) on local disk

BB10 document said: https://developer.blackberry.com/html5/documentation/accessing_a_local_project_in_ripple_1948645_11.html

So I copied the bbuijs samples project to Mac OS: /Users//RippleSites.samples

But when I pointed chrome to localhost:9910/samples/index.htm (Ripple emulator extension)

enter image description here

Chrome said could not connect to localhost:9910

enter image description here

Is there anything wrong?

Do I need to run web server sharing?

enter image description here

Welcome any comment


Solution

  • Easiest thing to do here it got to enable "web sharing" (your last pic). create a symbolic link from the Web Server's home dir to your samples. So:

    cd /Library/WebServer/Documents/
    ln -s <path to your samples> <name of dir>
    

    Note: you might have to use "sudo" ahead of that last command.

    You should then be able to go to 127.0.0.1/(name of dir) and it should work for you.

    Hope this helps.