Skip to content

Commit

Permalink
fixme: win全新安装并初始化数据库后,必须重启web服务,否则数据库访问总是会失败。
Browse files Browse the repository at this point in the history
  • Loading branch information
apexliu committed Mar 27, 2017
1 parent c473b19 commit 349d679
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build/.idea/build.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/builder/build-pysrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _make_py_ver_file(self):

def _get_py_dll_name(self):
#return 'python{}{}.dll'.format(PY_VER[0], PY_VER[1])
return 'python{}.dll'.format(utils.cfg.py_ver_str)
return 'python{}.dll'.format(env.py_ver_str)


class PYSBaseLinux(PYSBase):
Expand Down
7 changes: 3 additions & 4 deletions server/share/etc/core.ini.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# LOG_LEVEL_INFO 2 log infomation/warning/error message.
# LOG_LEVEL_WARN 3 log warning and error message.
# LOG_LEVEL_ERROR 4 log error message only.
log-level=0
log-level=2

; 'replay-path' define the replay file location. if not set, default location
; to $INSTDIR%/data/replay/
Expand All @@ -20,9 +20,8 @@ log-level=0
web-server-rpc=http://127.0.0.1:7190/rpc

[rpc]
; Request by web server. `bind-ip` should be the ip of core server. If
; web server and core server running at the same machine, it should be
; 127.0.0.1
; Request by web server. `bind-ip` should be the ip of core server. If web server and
; core server running at the same machine, it should be 127.0.0.1.
bind-ip=127.0.0.1
bind-port=52080

Expand Down
2 changes: 1 addition & 1 deletion server/share/etc/web.ini.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ port=7190
# LOG_LEVEL_INFO 2 log infomation/warning/error message.
# LOG_LEVEL_WARN 3 log warning and error message.
# LOG_LEVEL_ERROR 4 log error message only.
log-level=1
log-level=2

; running in debug mode. default to 0.
; in debug mode, log-level set to 0 and trace call stack while exception raise.
Expand Down
4 changes: 2 additions & 2 deletions server/tp_core/core/ts_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bool TsEnv::init(bool load_config)
}
else // not in development mode
{
#ifdef EX_OS_WIN
#ifdef EX_OS_WIN32
base_path = m_exec_path;
ex_path_join(base_path, true, L"..", NULL);
m_etc_path = base_path;
Expand All @@ -70,7 +70,7 @@ bool TsEnv::init(bool load_config)

if (!m_ini.LoadFromFile(conf_file))
{
EXLOGE("[core] can not load core.ini.\n");
EXLOGE(L"[core] can not load %ls.\n", conf_file.c_str());
return false;
}

Expand Down

0 comments on commit 349d679

Please sign in to comment.