Fixes in default config
This commit is contained in:
parent
67401c4b5c
commit
98d0ca3e76
2 changed files with 6 additions and 3 deletions
|
|
@ -30,6 +30,8 @@ def start():
|
||||||
|
|
||||||
parser.add_argument('--folder', help='If you deploy in a subdirectory, set it, without beggining and ending slashes', required=False)
|
parser.add_argument('--folder', help='If you deploy in a subdirectory, set it, without beggining and ending slashes', required=False)
|
||||||
|
|
||||||
|
parser.add_argument('--host', help='The host ip or domain where the app is binded', required=False)
|
||||||
|
|
||||||
parser.add_argument('--port', help='If you deploy for production, set it to 80 value', required=False)
|
parser.add_argument('--port', help='If you deploy for production, set it to 80 value', required=False)
|
||||||
|
|
||||||
parser.add_argument('--ssl', help='If the site use ssl, set it', action='store_true')
|
parser.add_argument('--ssl', help='If the site use ssl, set it', action='store_true')
|
||||||
|
|
@ -147,6 +149,9 @@ def start():
|
||||||
|
|
||||||
conf=conf.replace("domain='localhost'", "domain='"+args.domain+"'")
|
conf=conf.replace("domain='localhost'", "domain='"+args.domain+"'")
|
||||||
|
|
||||||
|
if args.host==None:
|
||||||
|
args.host='localhost'
|
||||||
|
|
||||||
if args.port==None:
|
if args.port==None:
|
||||||
args.port=':8080'
|
args.port=':8080'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,10 @@ session_enabled=True
|
||||||
|
|
||||||
cookie_name = 'paramecio.session'
|
cookie_name = 'paramecio.session'
|
||||||
|
|
||||||
domain='0.0.0.0'
|
domain='localhost'
|
||||||
|
|
||||||
domain_url='http://localhost:8080'
|
domain_url='http://localhost:8080'
|
||||||
|
|
||||||
#Go back to beaker sessions
|
|
||||||
|
|
||||||
#Keep this variable and don't show to anybody
|
#Keep this variable and don't show to anybody
|
||||||
|
|
||||||
key_encrypt="im smoking fool"
|
key_encrypt="im smoking fool"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue