or the way that I do it is... svn checkout to /usr/local/src/merb make the
changes to the source as needed and then gem uninstall and rake install
again... extra steps but it works. :)
HTH,
rogelio
On 3/13/07, Ezra Zygmuntowicz <ez at engineyard.com>
wrote:>
>
> On Mar 13, 2007, at 10:56 AM, Luke Francl wrote:
>
> > Stupid question, but is there a way to run merb locally, without
> > installing it as a gem? I don''t mean freezing it into a merb
app,
> > but checking out merb and being able to run it without installing
> > the gem first.
> >
> > The reason I ask is that I''m working on some debugging stuff
and
> > it''d be helpful to be able to modify the source code, run it,
> > modify, run, and so on. (And yes, I am writing tests. ;-)
> >
> > Thanks,
> > Luke Francl
>
>
> Hey Luke-
>
> There is not really a way to do that without installing the gem
> first. You have to build the gem and then freeze the framework into
> your app. Then you can modify it easily. This is how I work with it.
>
> $ rake install #builds the gem and installs
>
> # from your merb_root, not dist_root
> $ rake freeze:merb
>
> Then you need to use
>
> $ script/merb
>
> Then you can uninstall the gem. This will create a dist/framework
> directory with the entire merb framework in it and you can modify it
> and use it without needing to rebuild gems all the time. ALso if you
> do this to yoru app once, it creates the script/merb stub for you and
> makes the framework dir. You could then delete the framework dir and
> do a frsh svn co of trunk into your dist/fraemwork dir. That way if
> you make changes and want to send a patch its easy.
>
> Cheers-
> -- Ezra Zygmuntowicz
> -- Lead Rails Evangelist
> -- ez at engineyard.com
> -- Engine Yard, Serious Rails Hosting
> -- (866) 518-YARD (9273)
>
>
> _______________________________________________
> Merb-devel mailing list
> Merb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/merb-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/merb-devel/attachments/20070313/37e66c3a/attachment.html