From 98d0ca3e7660d8ffb213c2be693891376b6e9cd4 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Sun, 19 Feb 2017 20:09:41 +0100 Subject: [PATCH] Fixes in default config --- paramecio/console.py | 5 +++++ paramecio/settings/config.py.sample | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/paramecio/console.py b/paramecio/console.py index f74778c..0ce9057 100644 --- a/paramecio/console.py +++ b/paramecio/console.py @@ -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('--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('--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+"'") + if args.host==None: + args.host='localhost' + if args.port==None: args.port=':8080' diff --git a/paramecio/settings/config.py.sample b/paramecio/settings/config.py.sample index a2d64ac..bcde5fb 100644 --- a/paramecio/settings/config.py.sample +++ b/paramecio/settings/config.py.sample @@ -61,12 +61,10 @@ session_enabled=True cookie_name = 'paramecio.session' -domain='0.0.0.0' +domain='localhost' domain_url='http://localhost:8080' -#Go back to beaker sessions - #Keep this variable and don't show to anybody key_encrypt="im smoking fool"