parent
6fe8e8004e
commit
fedeefef98
@ -1,3 +1,4 @@
|
||||
log/*.log
|
||||
tmp/*
|
||||
db/*.sqlite3
|
||||
config/redis.conf
|
||||
|
@ -1,3 +1,3 @@
|
||||
rails_server: bundle exec script/server
|
||||
resque_web: bundle exec resque-web --foreground --no-launch
|
||||
redis: bundle exec redis-server config/redis.conf
|
||||
resque_web: bundle exec script/resque-web-runner
|
||||
redis: bundle exec script/redis-runner
|
||||
|
@ -0,0 +1,6 @@
|
||||
require 'mc-settings'
|
||||
|
||||
Setting.load(
|
||||
:path => Rails.root,
|
||||
:files => ['config/settings/default.yml']
|
||||
)
|
@ -0,0 +1,8 @@
|
||||
require 'erb'
|
||||
|
||||
File.open(Rails.root.join('config/redis.conf.erb'), 'r') do |f|
|
||||
tmpl = ERB.new(f.read)
|
||||
File.open(Rails.root.join('config/redis.conf'), 'w') do |conf|
|
||||
conf.write(tmpl.result(binding))
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
resque_web:
|
||||
port: 15678
|
||||
|
||||
redis:
|
||||
port: 16379
|
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
exec ruby <<EORUBY
|
||||
require File.expand_path('../../config/environment', '$0')
|
||||
exec "resque-web --foreground --no-launch --port #{Setting.resque_web(:port)}"
|
||||
EORUBY
|
Loading…
Reference in new issue