From 057bfbf95da10d4a98db0fbea397b0d7c5523c02 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Mon, 27 Jun 2016 05:25:23 +0200 Subject: [PATCH] Added domain configuration in config.py and new options in console.py --- paramecio/console.py | 6 ++++++ paramecio/settings/config.py.sample | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/paramecio/console.py b/paramecio/console.py index 04feb2d..8ea4a2d 100644 --- a/paramecio/console.py +++ b/paramecio/console.py @@ -17,6 +17,12 @@ def start(): parser=argparse.ArgumentParser(description='A tool for create new paramecio sites') parser.add_argument('--path', help='The path where the paramecio site is located', required=True) + + parser.add_argument('--domain', help='The base domain for this site', required=True) + + parser.add_argument('--folder', help='If you deploy in a subdirectory, set it', required=False) + + parser.add_argument('--port', help='If you deploy in a not standard port, set it', required=False) parser.add_argument('--modules', help='A list separated by commas with the git repos for download modules for this site', required=False) diff --git a/paramecio/settings/config.py.sample b/paramecio/settings/config.py.sample index b719544..54fd65c 100644 --- a/paramecio/settings/config.py.sample +++ b/paramecio/settings/config.py.sample @@ -52,6 +52,10 @@ session_enabled=True cookie_name = 'paramecio.session' +domain='localhost' + +domain_url='http://localhost:8080' + #Go back to beaker sessions #Keep this variable and don't show to anybody