#!/bin/bash exec ruby <<EORUBY require File.expand_path('../../config/environment', '$0') exec "resque-web --foreground --no-launch --port #{Setting.resque_web(:port)}" EORUBY