Execution path

Monkey Targets Forums/HTML5/Execution path

Suco-X(Posted 2011) [#1]
Hi guys,

I got a problem with the execution path from the html5 target. I want to test something with Ajax and Iīve installed an apache server to test it local on my pc. If I run my code, monkey execute my source with this path:
file:///C:/xampp/htdocs/ajax/ajax.build/html5/MonkeyGame.html


After executing it doesnīt run because the path should be
http://localhost/ajax/ajax.build/html5/MonkeyGame.html


Is there a way to change it?

Mfg Suco


marksibly(Posted 2011) [#2]
Hi,

Not currently - you'll need to manually browse to the file, and then hit 'refresh' to test changes.

The next release will include a 'mini-server' to help with issues like this.


skid(Posted 2011) [#3]
A work around is to put code in MonkeyGame.html that redirects to a localhost address instead of hosting the game canvas itself.


Suco-X(Posted 2011) [#4]
Hi,

canīt see how the new mini-server could help me with my problem if I want to call php files. Isnīt there a way to use Apache server instead of mini-server?
Have seen this line in the config file:
HTML_PLAYER="${TRANSDIR}\mserver_winnt.exe"


Is this line the key to use Apache server?

Mfg Suco