修改configuation

This commit is contained in:
sylor_huang@126.com 2020-03-13 17:18:35 +08:00
parent c139ae0d2f
commit fefb9d1fd2
3 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,6 @@ class SyncUserForgeTask
def call
Rails.logger.info("##########_______sync_start________###########")
all_users = User.where("login is not null")
# .where(id: [23021, 9343, 9137, 9410, 9303, 9299, 9333,])
# 这里再把所有用户循环
all_users.find_each do |u|
user_params = u.as_json

View File

@ -207,6 +207,7 @@ default:
# that overrides the default ones
production:
# CJK support
sync_forge_url: "https://testforgeplus.trustie.net"
rmagick_font_path: /usr/share/fonts/ipa-mincho/ipam.ttf
judge_server: 'http://192.168.80.21:8080/'
repository_root_path: '/home/pdl/redmine-2.3.2-0/apache2/htdocs'

View File

@ -12,7 +12,7 @@ class SyncUserForgeJob
Rails.logger.info("#######____sync_user_to_forge_start__########")
begin
api_host = "#{Redmine::Configuration['sync_forge_url']}"
url = "http://127.0.0.1:3000/api/sync_forge"
url = "#{api_host}/api/sync_forge"
Rails.logger.info("#######_________response__sync__url_____#########{url}")
sync_json = {