On Dec 18, 2007 3:46 PM, Simon Chappell <[EMAIL PROTECTED]> wrote:
>
> On Dec 18, 2007 1:25 PM, David King <[EMAIL PROTECTED]> wrote:
> >
> > > Assuming that Erlang and Yaws are correctly installed and configured:
> > > After unzipping the erlyweb-0.6.2.zip file, I see that there are beam
> > > files under ebin, but there are also makefiles. Does anything need to
> > > be compiled or can the beam files just be put somewhere?
> >
> > The .beam files will probably just work as is. I have a lib/ directory
> > in my project root (that's an svn:externals entry, in my case), like
> > this (some extra files listed to get your bearings):
> >
> > start.sh
> > ebin/*.beam (my beams)
> > src/*.erl (my source)
> > src/components/*.{et,erl}
> > www/style.css
> > lib/erlyweb/Makefile
> > lib/erlyweb/ebin/*.beam (the pre-included beams)
> > lib/erlyweb/src/...
>
> Do I understand correctly that you include the beam files for ErlyWeb
> in your project? My mental model was that the ErlyWeb beam files
> should be stored somewhere that Erlang/Yaws could find them on the
> computer running the application. Would you recommend keeping them
> with the project instead as a best practice?
>
> What are the pros and cons to this approach?

The easiest way to install ErlyWeb is to unzip the package in your
Erlang code path (this is the default place where Erlang finds .beam
files during runtime -- it's usually /usr/local/lib/erlang/lib or
something). You don't have to compile anything yourself.

If you do want to compile it yourself, you have to change the top line
in the Emakefile to match your Yaws path before you call 'make'.

I don't recommend keeping the ErlyWeb files in the project directory.
There's nothing horribly wrong about it, but it may give you the false
impression that you can have multiple apps running with different
versions of ErlyWeb, which is not the case. I think it's more
straightforward to install ErlyWeb in the Erlang code path.

Yariv

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to