Commit d10679b7 authored by lixiaofang's avatar lixiaofang

add

parent a945b9fe
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:])
No preview for this file type
No preview for this file type
......@@ -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": "101.200.54.249",
"port": 9200
}
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment