haxelib icon indicating copy to clipboard operation
haxelib copied to clipboard

Local haxelib server using sqlite uses different db path for website and remoting API

Open jasononeil opened this issue 12 years ago • 6 comments

Using "localhost:2000/" for the website, and "localhost:2000/api/3.0/" for the API, they use different paths:

Website: /root/haxelib.db API: /root/../../haxelib.db

This would obviously be a good idea to fix...

jasononeil avatar Jun 06 '13 13:06 jasononeil

Uhm, is this still an issue?

back2dos avatar Mar 09 '15 15:03 back2dos

Yes, but I doubt it affects many people. I'll look at it after some of the more urgent ones.

jasononeil avatar Mar 14 '15 01:03 jasononeil

That is due to -D haxelib_api, but I really have no Idea why it's even needed. Let's remove it?:)

nadako avatar Dec 22 '15 21:12 nadako

Off the top of my head I think this is related to the fact that the remoting API module is built separately from the web server and located in some subfolder (api/3.0 or somesuch thing).

On Tue, Dec 22, 2015 at 10:30 PM, Dan Korostelev [email protected] wrote:

That is due to -D haxelib_api, but I really have no Idea why it's even needed. Let's remove it?:)

— Reply to this email directly or view it on GitHub https://github.com/HaxeFoundation/haxelib/issues/56#issuecomment-166734716 .

back2dos avatar Dec 23 '15 09:12 back2dos

Maybe that's related to some mod_neko cwd behaviour? Because for nekotools server i have to compile WITHOUT -D haxelib_api

nadako avatar Dec 23 '15 10:12 nadako

@andyli you do have access to haxelib servers nowadays? could you check if we can get rid of that -D haxelib_api define and not break anything? :)

nadako avatar Mar 10 '16 18:03 nadako