From 66b6942ba94f748f6b250938aafc62a01d1c2ef9 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 13 May 2020 11:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/jobs/project_create_chain_job.rb | 2 ++ config/routes.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/jobs/project_create_chain_job.rb b/app/jobs/project_create_chain_job.rb index 59cb6558a..326f02b50 100644 --- a/app/jobs/project_create_chain_job.rb +++ b/app/jobs/project_create_chain_job.rb @@ -19,6 +19,8 @@ class ProjectCreateChainJob < ApplicationJob else chain_status = {status: 200} end + Rails.logger.info("########_response__chain_status__#{chain_status}__") + status = chain_status[:status].to_i end end diff --git a/config/routes.rb b/config/routes.rb index badca06ba..8c124d658 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,9 +2,9 @@ Rails.application.routes.draw do require 'sidekiq/web' require 'admin_constraint' - mount Sidekiq::Web => '/sidekiq' + # mount Sidekiq::Web => '/sidekiq' - # mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new + mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new get 'attachments/download/:id', to: 'attachments#show' get 'attachments/download/:id/:filename', to: 'attachments#show'