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
e8f1a70e
Commit
e8f1a70e
authored
Jun 11, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
589a48d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
132 deletions
+0
-132
develop_server.py
develop_server.py
+0
-31
settings_local.py
search_tips/settings_local.py
+0
-101
No files found.
develop_server.py
deleted
100644 → 0
View file @
589a48d3
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/settings_local.py
deleted
100644 → 0
View file @
589a48d3
# -*- coding:utf-8 -*-
from
datetime
import
timedelta
from
celery.schedules
import
crontab
ALLOWED_HOSTS
=
[
"192.168.78.2"
]
SECRET_KEY
=
'e
%
$v6snev0807=t0@gk_n2#r5m6r1h(eil6cp^y3ub@ja@gk_t'
SENTRY_CELERY_ENDPOINT
=
"http://60b0004c8884420f8067fb32fc3ed244:20f97fc73ffa4aad9735d0e6542a6d78@sentry.igengmei.com/140"
BROKER_URL
=
"redis://redis.paas.env:6379/8"
REDIS_URL
=
"redis://redis.paas.env:6379/13"
CELERY_BROKER_URL
=
"redis://redis.paas.env:6379/8"
DATABASES
=
{
'default'
:
{
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'zhengxing_test',
# 'USER': 'work',
# 'PASSWORD': 'workwork',
# 'HOST': 'rdsmaqevmuzj6jy.mysql.rds.aliyuncs.com',
# 'PORT': '',
# 'OPTIONS': {
# "init_command": "SET foreign_key_checks = 0;",
# "charset": "utf8mb4",
# }
'ENGINE'
:
'django.db.backends.mysql'
,
# 设置为mysql数据库
'NAME'
:
'zhengxing_test'
,
'USER'
:
'work'
,
'PASSWORD'
:
'Gengmei1'
,
'HOST'
:
'rm-2ze0v6uua2hl9he8edo.mysql.rds.aliyuncs.com'
,
'PORT'
:
'3306'
,
'OPTIONS'
:
{
"init_command"
:
"SET foreign_key_checks = 0;"
,
"charset"
:
"utf8mb4"
,
# 为了支持emoji表情
},
},
'bran'
:
{
'ENGINE'
:
'django.db.backends.mysql'
,
# 设置为mysql数据库
'NAME'
:
'bran_test'
,
'USER'
:
'work'
,
'PASSWORD'
:
'workwork'
,
'HOST'
:
'rdsmaqevmuzj6jy.mysql.rds.aliyuncs.com'
,
'PORT'
:
'3306'
,
'OPTIONS'
:
{
"init_command"
:
"SET foreign_key_checks = 0;"
,
"charset"
:
"utf8mb4"
,
# 为了支持emoji表情
},
}
}
INSTALLED_APPS
=
(
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'trans2es'
,
'search'
,
'injection.data_sync'
,
)
CELERYBEAT_SCHEDULE
=
{
'set_tag_count'
:
{
'task'
:
'injection.data_sync.tasks.set_data_to_redis'
,
'schedule'
:
timedelta
(
seconds
=
10
),
'args'
:
()
},
}
# ES_INFO_LIST = [
# {
# "host": "101.200.54.249",
# "port": 9200
# }
# ]
#
GM_ORI_ES_INFO_LIST
=
[
{
"host"
:
"101.200.54.249"
,
"port"
:
9200
}
]
ES_INFO_LIST
=
[
{
"host"
:
"127.0.0.1"
,
"port"
:
9200
}
]
#
# GM_ORI_ES_INFO_LIST = [
# {
# "host": "127.0.0.1",
# "port": 9200
# }
# ]
ES_INDEX_PREFIX
=
"gm_test"
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