修改configuation
This commit is contained in:
parent
c139ae0d2f
commit
fefb9d1fd2
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue