starting Resque
This commit is contained in:
1 parent
ba4385e3fd
commit
7339d1ee4a
11 files changed
+114
-11
No files matched your search
@@ -29,16 +29,16 @@ Orbit::Application.configure do
|
||||
# :sender_address => %{"notifier" <redmine@rulingcom.com>},
|
||||
# :exception_recipients => %w{chris@rulingcom.com}
|
||||
|
||||
# config.action_mailer.delivery_method = :smtp
|
||||
# config.action_mailer.smtp_settings = {
|
||||
# :tls => true,
|
||||
# :enable_starttls_auto => true,
|
||||
# :address => "smtp.gmail.com",
|
||||
# :port => '587',
|
||||
# :domain => "smtp.gmail.com",
|
||||
# :authentication => "plain",
|
||||
# :user_name => "redmine@rulingcom.com",
|
||||
# :password => "rulingredmine" }
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
:tls => true,
|
||||
:enable_starttls_auto => true,
|
||||
:address => "smtp.gmail.com",
|
||||
:port => '587',
|
||||
:domain => "smtp.gmail.com",
|
||||
:authentication => "plain",
|
||||
:user_name => "redmine@rulingcom.com",
|
||||
:password => "rulingredmine" }
|
||||
|
||||
end
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
require 'resque_scheduler'
|
||||
require 'resque_scheduler/server'
|
||||
require 'yaml'
|
||||
|
||||
rails_root = ENV['RAILS_ROOT'] || File.dirname(__FILE__) + '/../..'
|
||||
rails_env = ENV['RAILS_ENV'] || 'development'
|
||||
|
||||
resque_config = YAML.load_file(rails_root + '/config/resque.yml')
|
||||
Resque.redis = resque_config[rails_env]
|
||||
|
||||
Resque.schedule = YAML.load_file("#{Rails.root}/config/resque_schedule.yml")
|
||||
Dir["#{Rails.root}/app/jobs/*.rb"].each { |file| require file }
|
||||
|
||||
# current_path = Rails.root.to_s.gsub(/\s/,'\ ')
|
||||
# queues = [:test]
|
||||
@@ -0,0 +1,2 @@
|
||||
development: localhost:6379
|
||||
production: localhost:6379
|
||||
@@ -0,0 +1,6 @@
|
||||
time_to_talk_a_rest:
|
||||
cron: "*/5 * * * *"
|
||||
class: FetchTime
|
||||
queue: daemons
|
||||
rails_env: development
|
||||
description: Send Email for Remind Time
|
||||
@@ -12,6 +12,7 @@ Orbit::Application.routes.draw do
|
||||
|
||||
# routes for admin
|
||||
namespace :admin do
|
||||
mount Resque::Server.new, :at => "/resque"
|
||||
resources :assets
|
||||
resources :app_auths
|
||||
resources :object_auths do
|
||||
|
||||
Reference in new issue
Block a user