Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

John Rees's Profile

GitHub User: johnrees

Site: http://johnre.es

Comments by John Rees

Avatar

I've noticed that during deployments, monit will sometimes see that unicorn, sidekiq etc have no pidfiles so will try to start them before the deploy is completed. Does anyone have a solution for this?

I'm thinking of writing a capistrano lockfile when the deploy is started and removing it when finished, then monit can skip its checks for the affected services if the lockfile exists.

Avatar

But if you click a button_to so it opens in a new tab it will load a GET request. Tested in Chrome and Safari.

Avatar

Has anyone got a monit template for Sidekiq and/or Redis?

I'm having a bit of a hard time setting the pidfiles up correctly with Unicorn Zero Downtime Deployments. This is where I'm at right now https://gist.github.com/3818705

Thanks

Avatar

Thanks Ryan. I've been working on a some simple tagging with the native Postgres string-array type this week, it seems to work very well although I don't have any comparative data on performance yet.

https://github.com/dockyard/postgres_ext was a huge help for getting started with it.

Avatar

The Textmate snippet for Sublime Text -

ruby
class Object
  def subl(method_name)
    file, line = method(method_name).source_location
    `subl '#{file}:#{line}'`
  end
end
Avatar

If I'm not mistaken this allows a blank password (and confirmation) to be submitted when resetting the password, because in this case the validates_presence_of :password is only called on creation of a user.

Avatar

have you tried using
validates_presence_of :password, on: :create

Avatar

Which log have you looked at? You probably want to check your unicorn/production logs

Avatar

Yep, you just need to do things a little differently when initially ssh'ing/setting up your keys

Avatar

Thanks Ryan, this is superb.

Reassuring to see that it's pretty similar to what I bodged together after watching your Vagrant/Unicorn screencasts https://gist.github.com/1985879

Avatar

Can't you just use an ordered list <ol>?

Avatar

You could also use

$('#person_state_id').parent().toggle(options)

Avatar

+1 For more deployment screencasts please! I'd be fascinated to see your deployment process.

Avatar

Sign up here

https://stripe.com/help/global

Maybe it will encourage them to speed things along :)

Avatar

Thanks for accommodating us non-US users with this cast. Hopefully Stripe will do too soon.

Avatar

The auto indexing looks nice/simpler than sphinx. It'll be interesting to see how they compare in production. Thanks Ryan!

Avatar

Completely agree with this, I hope there is a supported way to not have to load a single large file.

Avatar

Are these new roles going to phase out CanCan?