Hi there!
I'm done with my app using JSMVC and I'm on the way to
build the app before to set it to my production env.
I start the building but it soon raises an error and my
production.* files are corrupted (they do not work):
- Building
to myapp/
-
opening myapp/scripts/build.html
- failed
to open file file:/myapp/backend/feed/list JavaException:
java.io.FileNotFoundException: \myapp\backend\feed\list (Given file
path is unreachable)
- Exception
in thread "Thread-4" adding dependencies
-
+ stealconfig.jsorg.mozilla.javascript.EcmaError: TypeError: Cannot
call method "indexOf" of null (steal/rhino/env.js#24542)
-
+ myapp/myapp.js
-
+ myapp/header_menu/header_menu.js
-
+ can/can.js
- [...]
-
no packages
- Building myapp/production.js
- myapp/production.css
The builder seams to try to access to a file
'/myapp/backend/feed/list' that does not exist.
The point is that /backend/ folder is my server backend, only
containing serverside scripts. "Feed/list" is a controller...
If I search in my code, I obviously found this:
(in file /myapp/models/feed.js)
- [...]
- /**
- *
Find all Feed
- */
- findAll
: "GET /megalopolis/backend/feed/list",
- /**
- *
Find one Feed
- */
- findOne
: "GET /megalopolis/backend/feed/{id}",
- [...]
Which is the server call to perform when trying to list the Feed
objects...
How to prevent this issue?
How to get the app built? :)
Best regards,
Anorr