new mongrels

Subscribe to new mongrels 12 post(s), 3 voice(s)

 
Avatar v.pacher 21 post(s)

I’ve upgraded my brightbox recently and now like to add more mongrel servers. I’ve outcommented the line ‘set :mongrel_servers, 2’ and changed it to 4, run cap deploy:setup and then cap:deploy afterwards but it still only shows two mongrels starting.
What do i do wrong?

cheers for any pointers
Volker

 
Avatar David Smalley Administator 36 post(s)

Hi Volker.

If you change the number of mongrels you’ll need to run “cap deploy:initial” again. This is the task that does the initial setup of mongrels and the Apache configuration.

 
Avatar v.pacher 21 post(s)

is there a way to do it without running migrations?
Volker

 
Avatar David Smalley Administator 36 post(s)

Volker.

It shouldn’t matter – migrations that have already been run won’t run again. Otherwise, I’m not sure how you’d stop them running, you could dig into the source of the brightbox gem and try commenting out the part that runs migrations. We’re working on a new version of the gem and every report like this is very useful for us to plan what extra features need adding.

 
Avatar v.pacher 21 post(s)

the problem is that i stopped using migrations for a while as it was simply to linear for development purposes. Would it be sufficient to set the version in schema info higher than the latest migration to prevent it from running?
Also I’d like to be sure that no files in my shared area are overwritten when i run deploy:initial

Volker

 
Avatar John Leach Administator 85 post(s)

You can safely run deploy:initial without losing data. I assume you’re using the local or global shared_dirs or shared_files system that our gem provides.

 
Avatar v.pacher 21 post(s)

thanks for the help I’ll give it a go.
As for feedback. Would it be possible to amend or change the initial deploy to use db:schema:load instead of running migrations and having the options of not having it run again as thats what I’m using to create the database for the first time instead of migrations.

Volker

 
Avatar v.pacher 21 post(s)

I’ve tried to run deploy:initial and get the following error message:
sh: railsapp-maintenance: command not found
Any ideas what that is?
Volker

 
Avatar David Smalley Administator 36 post(s)

Hi Volker,

It sounds like you don’t have rubygems and/or the brightbox-server-tools package – try a ‘sudo apt-get install rubygems’ and a ‘sudo gem install brightbox-server-tools’.

 
Avatar v.pacher 21 post(s)

thanks, that was the problem. brightbox gem mismatch.
On another note, does your brightbox gem handle several nginx servers with different ips and different ssl certificates or do I need to do this by hand?
I will need to do this in the near future.
Volker

 
Avatar David Smalley Administator 36 post(s)

Hi Volker,

The gem is actually configured for a standard rails app deployment. We do the kind of configuration you talk about ourselves sometimes for our internal projects and it does always have to be done by hand.

 
Avatar v.pacher 21 post(s)

Hello David. thanks for the answer. When the time comes I’ll post a support ticket if I need help.

Volker

Signup or login to contribute