It is not a bug. This is needed for development with grunt. i've forked your project moving all files in studio folder. Works for me
https://github.com/maggiolo00/orientDBstudio On http://localhost:2480/studio/index.html#/ 2015-05-07 9:47 GMT+02:00 Dmitrii Rogozin <[email protected]>: > So finally I found what's the solution is. It seems to be a bug, looks > really weird. > You have to got to the www/scriipts/scripts.js and change variable API > (remove line with -, add line with +). > > var API = (function () { > var m = window.location.pathname.match(/(.*\/)studio\/index.html/); > - return m && m[1] ? m[1] : '/api/'; > + return m && m[1] ? m[1] : '/'; > })(); > > You can search for "studio" to find this place. In some versions, there is > no scripts.js file but a bunch of different js files (I guess it's a > development version), > then you need to change api.js file in the same way. > > Also you can check that without this fix, sending GET request doesn't > work, for example > localhost:port/listDatabases or localhost:port/api/listDatabases return > command not found. > With this fix, it returns a JSON of databases. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
