Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
search_tips
Commits
d10679b7
Commit
d10679b7
authored
Jun 05, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a945b9fe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
2 deletions
+35
-2
develop_server.py
develop_server.py
+31
-0
__init__.pyc
search_tips/__init__.pyc
+0
-0
log_settings.pyc
search_tips/log_settings.pyc
+0
-0
settings.pyc
search_tips/settings.pyc
+0
-0
settings_local.py
search_tips/settings_local.py
+4
-2
No files found.
develop_server.py
0 → 100644
View file @
d10679b7
import
sys
from
gm_rpcd.commands.utils
import
add_cwd_to_path
from
gm_rpcd.internals.utils
import
serve
def
main
(
args
):
add_cwd_to_path
()
from
gm_rpcd.internals.configuration
import
config
config
.
is_develop_mode
=
True
config
.
freeze
()
host
=
'127.0.0.1'
port
=
9000
try
:
first_arg
=
args
[
0
]
except
IndexError
:
pass
else
:
if
':'
in
first_arg
:
host
,
port
=
first_arg
.
split
(
':'
)
port
=
int
(
port
)
else
:
port
=
int
(
first_arg
)
print
(
'Serving on {}:{}'
.
format
(
host
,
port
))
serve
(
host
=
host
,
port
=
port
)
if
__name__
==
'__main__'
:
main
(
sys
.
argv
[
1
:])
search_tips/__init__.pyc
View file @
d10679b7
No preview for this file type
search_tips/log_settings.pyc
View file @
d10679b7
No preview for this file type
search_tips/settings.pyc
View file @
d10679b7
No preview for this file type
search_tips/settings_local.py
View file @
d10679b7
...
...
@@ -8,7 +8,9 @@ SENTRY_CELERY_ENDPOINT = "http://60b0004c8884420f8067fb32fc3ed244:20f97fc73ffa4a
BROKER_URL
=
"redis://127.0.0.1:6379/8"
REDIS_URL
=
"redis://127.0.0.1:6379/1"
# REDIS_URL = "redis://127.0.0.1:6379/1"
REDIS_URL
=
"redis://redis.paas.env:6379/13"
CELERY_BROKER_URL
=
"redis://127.0.0.1:6379/8"
...
...
@@ -48,7 +50,7 @@ ES_INFO_LIST = [
GM_ORI_ES_INFO_LIST
=
[
{
"host"
:
"10
.29.130.141
"
,
"host"
:
"10
1.200.54.249
"
,
"port"
:
9200
}
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment