Never mind I figured it out. I'm going to hack this until I understand it better and then write about it on the wiki :)
On Fri, Oct 31, 2008 at 10:49, Hannes Baldursson <[EMAIL PROTECTED]> wrote: > I've been looking into the skeleton app, it's awesome - I owe you one! > > But I'm having 2 problems. > > 1. Where should I place the erlang files generated by Thrift? > (RPC_DIR=../../if) > 2. Where should I place the Thrift modules? > > Like I said I'm new to erlang and thrift and I've got a hard time wrapping > my head around it because of the limited documentation. > > Thanks in advance, > Hannes > > > On Thu, Oct 30, 2008 at 21:12, Suhail Doshi <[EMAIL PROTECTED]>wrote: > >> Hannes Baldursson wrote: >> >>> Hi all, >>> >>> I'm having some troubles with the Erlang generated code from Thrift. I >>> might >>> add that I'm a newbie in using Thrift and got minimal knowledge about >>> Erlang >>> but I'm fairly experienced in programming. >>> >>> I've been looking at the tutorial where in one directory "tutorial/erl/" >>> there are files called "server.erl" and "server.sh" that seem to be an >>> implementation of the RPC functions. Am I missing something or doesn't >>> Thrift generate server stubs based on my definition file? >>> >>> All the generated files I see are in the gen-erl and I can't see that any >>> one of them do what server.erl does... am I missing something or do I >>> have >>> to hand code the "server.erl" file >>> >>> btw, I will make sure to add your points into the wiki page >>> >>> Thanks in advance, >>> Hannes Baldursson >>> >>> >>> >> Hi Hannes, >> >> I am very new to thrift too, just started hacking away at it last week. >> Fortunately I was lucky to be friends with Todd Lipcon who made the Erlang >> bindings for Thrift in the first place. Something very useful is: >> >> http://github.com/toddlipcon/thrift_erl_skel/tree/master >> >> Play around and check it out, should give you a great stepping stone. You >> might get stuck make the erlang app, make sure to check where your rpc >> directory is pointing to in gen/Makefile. >> >> Suhail >> > >
