Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Building fails because of backend url..?

$
0
0
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):

  1. Building to myapp/
  2.   opening myapp/scripts/build.html
  3. failed to open file  file:/myapp/backend/feed/list   JavaException: java.io.FileNotFoundException: \myapp\backend\feed\list (Given file path is unreachable)
  4. Exception in thread "Thread-4"   adding dependencies
  5.   + stealconfig.jsorg.mozilla.javascript.EcmaError: TypeError: Cannot call method "indexOf" of null (steal/rhino/env.js#24542)
  6.   + myapp/myapp.js
  7.   + myapp/header_menu/header_menu.js
  8.   + can/can.js
  9.   [...]
  10.   no packages
  11. Building myapp/production.js
  12.          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)
  1. [...]
  2. /**
  3.  * Find all Feed
  4.  */
  5.  findAll : "GET /megalopolis/backend/feed/list",
  6. /**
  7.  * Find one Feed
  8.  */
  9.  findOne : "GET /megalopolis/backend/feed/{id}",
  10. [...]

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

Viewing all articles
Browse latest Browse all 3491

Trending Articles