Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embedder not working correctly #25

Closed
Arcnor opened this issue Jun 26, 2012 · 2 comments
Closed

embedder not working correctly #25

Arcnor opened this issue Jun 26, 2012 · 2 comments

Comments

@Arcnor
Copy link

Arcnor commented Jun 26, 2012

  1. Create an empty project
  2. wafl configure --debug
  3. wafl install
  4. python -m SimpleHTTPServer in deploy/web
  5. Go to localhost:8000
  6. You'll see the Flash version of your project (white canvas)
  7. Clicking on "Flash" or "HTML5" below will get you only a black rectangle (nothing is inserted on the < div id="content" >). No errors on console

Tried with haxe 2.10 (a working revision before RC, with flambe working, and 4974 from a few hours ago), Mac OSX 10.6 and Windows 7.

I hope this is not something stupid I've done, but I don't think so (empty project and all that).

@aduros
Copy link
Owner

aduros commented Jun 26, 2012

This sounds like the dumb bug in SimpleHTTPServer I keep running into. Basically if you go to http://localhost:8000 then click HTML5, you'll get redirected to http://localhost:8000/?flambe=html/ (note the trailing slash), which is wrong.

As a workaround, explicitly going to http://localhost:8000/index.html makes the links work.

I'm thinking of embedding a more decent web server into wafl, exposed with wafl web or something.

@Arcnor
Copy link
Author

Arcnor commented Jun 26, 2012

You, of course, are correct :)

I hope this will serve whoever falls into this, however.

Thanks.

@Arcnor Arcnor closed this as completed Jun 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants