Displaying 20 results from an estimated 2000 matches similar to: "Lost MySQL"
2007 Sep 20
11
Proposed API change for respond_to
Ez (or someone) asked on #merb tonight whether respond_to was the
right API for
what it does. After some discussion and pasties, I offer the
following proposed
API for content negotiation and response format selection:
First, what does respond_to do right now? I see at as performing 3
distinct
operations:
1. parse params[:format] and the accepts header to find out what
format the
2007 Nov 26
1
Loading a specific version of MERB gem
greetings,
i have a project based around merb 0.3.7 and I do not want to fiddle
with it one bit. and now I want to start a new project running
0.4.2(and beyond). what is the recommend method of starting merb from
a specific gem version?
thanks - jw
2008 Mar 13
4
Merb in production with God/Monit
Hey All,
I just wanted to get other peoples take on problems when running merb
in production? Just as Rails used to do, the mongrels tend to get
heavy/unresponsive over time so need a good kicking by a watcher
daemon like god or monit. However, I have had serious problems getting
God to restart the process, as the "merb -k <port>" command doesnt
appear to work reliably
2007 Jan 19
5
Merb Init Script
I''m trying to emulate the mongrel_cluster_ctl but it takes a -c
conf_file option... meaning I can run it from anywhere as long as I
tell it where the conf file is. Merb doesn''t have that capability does
it? (it has an additional/supplemental config like mup.conf etc)
Do I have to be under the merb_app root /path/to/merb/app/ to be able
to run merb?
Let me know.
Thanks,
2008 Jan 03
23
deployment survey
Hello Mongrels,
Building on the last messages about Fastthread, can we get a detailed
survey of the different ways people are deploying their applications?
It will help with near-future Mongrel development.
Please include the following things:
* Framework, if any (Camping, Merb, Rails, Nitro, Ramaze, IOWA, Rack...)
* Mongrel version
* Mongrel handlers used (rails, dirhandler, camping,
2007 Sep 11
0
Merb & Monit
greetings,
i have been trying to get merb and monit to play well. but monit
won''t restart merb. neither will monit stop merb if it is still
running but not responding.
below is the monit config for the merb app.
anyone know what i am doing wrong or have good strategies for using
monit and merb?
thank you - john weir
check process manwith-4000 with pidfile
2007 Nov 06
2
what did I do?
I''m following merb trunk. This morning I updated my gems, sync''d merb
source and installed the merb gem from source. I don''t know if I did
something wrong, or if a new gem messed things up, or if there was a
merb change which broke something. Now I get this error:
Request: REQUEST_URI: / (2007-11-05 20:27:04)
Params: {"action"=>"index",
2008 Jan 16
3
Application generation
Hi All,
Is anyone seeing this?
$ merb merb_paste
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:69:in
`parse_args'': uninitialized constant Merb::RELEASE (NameError)
from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize''
from /usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:67:in
`new''
from
2006 Dec 04
2
Merb on Win32 Platform
I''m trying to get Merb running on Windows XP SP2 and am experiencing
some difficulties. I load http://localhost:4000/posts/new in my
browser expecting to see the contents of new.herb rendered. However
the following error is reported:
Request: PATH_INFO: /posts/new
Params: {"action"=>"new", "id"=>nil, "controller"=>"posts"}
2007 Aug 31
3
Bootstrapping from SVN
Is there a simple way to bootstrap merb directly from the Subversion
repository, rather than first installing it as a gem?
I can do the following if I already have an old gem lying around:
merb -g testapp # using an old gem
cd testapp
rake merb:freeze_from_svn
Unfortunately, that means I''m using an old version of the generator. So for
example, when I just tried this,
2007 Feb 26
1
teeny mongrel_cluster hack
I was playing around with merb over the weekend and whipped up a simple form
that takes your mongrel_cluster.yml file and outputs monit files for you.
Not exactly earth shattering info, but if you have a couple of pups it might
save you some braindead typing. It''s using the new mongrel_cluster syntax,
of --only and clean for each port in your system. Hope it saves someone
some time.
2007 Feb 15
1
wrong startup information in production environment
Hi,
I check out the last codes from merb repository. And the startup
information for production environment just like that:
======================================================
dev:/var/www/apps/upload_merb/current/log# /etc/init.d/merb_init start
Merb started with these options:
---
:template_ext:
:html: :herb
:js: :jerb
:xml: :xerb
:config: dist/conf/upload.conf
:drb_server_port:
2008 Jan 18
5
How do I pass form values from POST controller specs?
Hi there
I just started my first Merb app and I''m running into some weird
things in Specs. When I do:
describe "create action" do
it "should create a new project" do
project_params = {:name => ''bekkunin''}
Project.should_receive(:create).with(project_params)
controller, action = post(''/projects'', :project
2007 Nov 07
1
merb/sequel mutex on or off? proxy_balancer or no?
Just a quick question to those of you using merb and sequel or
datamapper. How do you setup your merb app?
For example:
merb -X off -c 5, then run mod_proxy_balancer or nginx to load balance
between the 5 (or whatever #) of merb nodes?
merb -X off -d, then simply use something like proxypass
merb -c 5, keep the mutex lock and cluster it
haproxy, swiftiply, evented mongrel......
What
2007 Nov 07
2
merb 0.4.0 session issue
Not sure if anyone else has had this problem.
I was running on merb edge fine a few days ago. Last night I went to
merb 0.4.0 via gem install and now any call to session[:foo] causes an
error >> undefined method ''[]'' for nil:NilClass
I have uninstalled and reinstalled merb with no luck.
dependencies.rb
use_orm :activerecord
merb.yml
:session_store: active_record
Gems
2007 Jul 31
2
Deploying with Merb
After a half day''s work I''ve created a Merb app to handle file uploads
for a Rails app.
In my dev environment, I changed the views in the Rails app to point
to Merb on port 4000.
But now I''m stuck trying to figure out how to deploy my new Merb app
on a production server.
Looks like originally this was handled with a rewrite rule
2007 Sep 19
4
Ticket #190 (friendlier way to add / register a mime type)
Following up on #190 [1], I''ve just added a simple patch that allows
the manipulation of the TYPES hash from within the Merb module. Use
like:
Merb.add_mime_type(:png,%w[image/png])
Merb.remove_mime_type(:png)
It specifically disallows the removal of the :all MimeType, since
content negotiation relies on it.
I''m not super wonderful at API design, so comments and
2007 Sep 04
11
returning(...) ?
The following construct is an ActiveSupport-ism:
returning(Foo.new) do |foo|
...
end
I don''t especially like it, since it''s both more verbose and less efficient
than the direct alternative:
foo = Foo.new
...
foo
It doesn''t occur many times in Merb, so does anyone agree with me that it
should be removed?
I tried doing this (patch attached) and I find
2007 Dec 19
3
Trapping custom exceptions in merb 0.5.0
Hi,
I have the following setup:
class Fred < Application
class InvalidKey < Merb::ControllerExceptions::Unauthorized; end
def blee
raise InvalidKey unless key
end
end
I have added a view exception template in
views/exceptions/invalid_key.html.erb
but I am not seeing the exception page being rendered ?? The request
seems to correctly
go to
2007 Jul 29
7
Merb test harness
Ezra,
* test harness in new generated merb apps with helpers for testing
merb without starting a server.
* pin down plugin arch
Seems to me that these two tasks go together unless you want to have
rspec built in Merb.
Regarding the test harness, my understanding is that:
- a developer should be able to easily write specs against a merb application.
- a developer should not need to start a merb