lucamezzalira / haxe-watchify

automatic build tool for your Haxe and OpenFL projects. It monitors the changes in your files and runs the build of your projects
https://www.npmjs.com/package/haxe-watchify
51 stars 4 forks source link

"File not found" message on the local server. #12

Closed sruloart closed 9 years ago

sruloart commented 9 years ago

Probably it's my own incompetence, but I can't get the path right. I've tried: http://localhost:35729/html5/bin/index.html http://localhost:35729/html5/bin/# (and even http://localhost:35729/html5/index.html, I've no idea why)

The server is running, I just can't see any files.

Also, in order to get Flash on an index.html I need to create the .html page myself first? it doesn't really matter because I can't seem to get any path right, but it's important to know.

This is my hx-watch.json:

{
  "build": {
    "program" : "openfl",
    "buildType" : "test", 
    "src" : "source",
    "livereload" : "export",
    "platforms" : ["html5", "flash"]
  }
}
lucamezzalira commented 9 years ago

So let's start from the bottom:

sruloart commented 9 years ago

Sure! tree

lucamezzalira commented 9 years ago

in theory you should be able to see the result with this URL http://localhost:35729/html5/bin/index.html

sruloart commented 9 years ago

In theory yes :) but I'm getting just "File not found"...

lucamezzalira commented 9 years ago

yep, if this is not a production project, can you send it to me so I'll be able to test in a real case scenario?

sruloart commented 9 years ago

I would gladly, but something tells me you don't use the haxeflixel git branches and it can take a while to set these up.

I'll make a minimal OpenFL project, test it to see if it has the same problem (it should, the export structure is the same, with or without HaxeFlixel), and then send it to your mail in a zip/rar archive.

sruloart commented 9 years ago

Done. Hopefully.

lucamezzalira commented 9 years ago

ok I found the solution for this issue and #10 I'm going to publish in few minutes, then let me know if it works. On my emulator it was working

sruloart commented 9 years ago

It's working and it's Absolutely Freaking Beautiful!

lucamezzalira commented 9 years ago

Solved in version 1.2.1