Sha256: 78fa645113377094fe22b9af80dba86f768b4f235371f82169450dc2db26bd30
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
namespace 'unicorn' do desc 'start server' task :start, :env, :config do |task, env, config| cmd = 'unicorn_rails' cmd << ' -c u.rb' if defined?(config.config) && File.exists?(File.join(Rails.root, config.config)) cmd << ' -E ' << env.env if defined? env.env sys cmd << ' -D' end desc 'stop server' task :stop do sys 'kill -QUIT `cat tmp/unicorn.pid`' if File.exists? File.join(Rails.root, 'tmp/unicorn.pid') end desc 'restart server' task :restart, :env, :config, :needs => [:stop, :start] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zfben_rails_rake-0.0.5 | tasks/unicorn.rb |