19 Apr '13, 7am

@_atton resque worker なるものが処理してくれる

#!/usr/bin/env ruby require File.expand_path('../../config/application', __FILE__) Rails.application.require_environment! class ResqueWorkerDaemon < DaemonSpawn::Base def start(args) @worker = Resque::Worker.new('default') @worker.verbose = true @worker.work end def stop @worker.try(:shutdown) end end ResqueWorkerDaemon.spawn!({ :working_dir => Rails.root, :pid_file => File.join(Rails.root, 'tmp', 'pids', 'echo_server.pid'), :log_file => File.join(Rails.root, 'log', 'echo_server.log'), :sync_log => true, :singleton => true })

Full article: http://www.oiax.jp/rails/zakkan/resque_worker_as_daemon.html

Tweets

NowBrowsing: Test::Unit と RSpec と Shoulda - Rai...

oiax.jp 18 Apr '13, 2am

昨日の記事 続・Rails 3.x 時代のテストフレームワーク では、Rails で使用できるテストフレームワークの基礎知識と相互関係についてまとめました。 今日は、Test::Unit と RSpec と Shoulda を具体的に比較してみ...

Ruby on Rails Guides: Ruby On Rails Security Gu...

guides.rubyonrails.org 19 Apr '13, 1pm

The threats against web applications include user account hijacking, bypass of access control, reading or modifying sensit...

“SSH公開鍵の設置 - Ruby on Rails with OIAX”

oiax.jp 12 Apr '13, 2pm

Generating public/private rsa key pair. Enter file in which to save the key (/home/kuroda/.ssh/id_rsa):

Diary of a Rails rescue project, part 2: Testin...

everydayrails.com 16 Apr '13, 4pm

Diary of a Rails rescue project, part 2: Testing April 16, 2013 As mentioned previously , I’ve been spending spare cycles ...

Ruby on Rails Guides: Action Controller Overview

guides.rubyonrails.org 17 Apr '13, 4am

class ClientsController < ActionController::Base # This action uses query string parameters because it gets run # by an HT...

Been heads-down working on our online Rails course for the past few months. Just finished filming!

Been heads-down working on our online Rails cou...

pragmaticstudio.com 16 Apr '13, 5pm

We just finished filming our online Rails course based on Rails 4! By popular demand, the format is the same as our online...

Integration testing in the absurd land of Rails...

guides.rubyonrails.org 15 Apr '13, 12pm

Testing support was woven into the Rails fabric from the beginning. It wasn’t an “oh! let’s bolt on support for running te...

@minky0 NetBeans対応のRubyプラグインの開発がまだ続いているので、助かります...

oiax.jp 10 Apr '13, 2pm

NetBeans IDE 7.2/7.3にRuby on Railsプラグインをインストールする手順を丁寧に説明します。 本稿が対象とする NetBeans のバージョンは 7.2 および 7.3 です。7.1については http://www....

Single resource REST Rails routes via @pivotall...

pivotallabs.com 17 Apr '13, 3am

REST principles by default is a fantastic convention within Rails applications. The documentation for how to route HTTP re...

Простой способ backup для Rails проектов

rubyflow.ru 17 Apr '13, 5am

Простой способ backup для Rails проектов

API with Ruby on Rails: useful tricks

rubyflow.com 08 Apr '13, 4pm

API with Ruby on Rails: useful tricks Posted by gregolsen on April 08, 2013 — 0 comments I've just published a blog post a...

Tip Tuesday: Did you know that you can run your...

edgeguides.rubyonrails.org 09 Apr '13, 4pm

$ rails generate scaffold HighScore game:string score:integer invoke active_record create db/migrate/20120528060026_create...

[Rails] / “#271 Resque - RailsCasts”

[Rails] / “#271 Resque - RailsCasts”

railscasts.com 06 Apr '13, 12pm

Resque creates background jobs using Redis. It supports multiple queue and comes with an administration interface for moni...

What's New in Edge Rails #64

afreshcup.com 08 Apr '13, 12pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

ASCIIcast 412 - Fast Rails Commands

railscasts.com 11 Apr '13, 6pm

Now that we don’t have to start up our Rails application every time we run one of these commands the output appears much s...