Fixes in console.py
This commit is contained in:
parent
0ea518919d
commit
26c5247c99
3 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ application_root='/'
|
|||
|
||||
yes_static=True
|
||||
|
||||
domain_url='http://127.0.0.1:5000'
|
||||
domain_url='http://localhost:5000'
|
||||
|
||||
#media_folder='/media/'
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ def start():
|
|||
|
||||
# Options for deploy
|
||||
|
||||
parser.add_argument('--url', help='The http/https base url of the real proxy server. Example: https://www.exampledomain.com, default is http://localhost:8080', required=False)
|
||||
parser.add_argument('--url', help='The http/https base url of the real proxy server. Example: https://www.exampledomain.com, default is http://localhost:5000', required=False)
|
||||
|
||||
parser.add_argument('--folder', help='If you deploy in a subdirectory, set it, without beggining and ending slashes', required=False)
|
||||
|
||||
|
|
@ -172,11 +172,11 @@ def start():
|
|||
conf=conf.replace("application_root='/'", "application_root='"+base_url+"'")
|
||||
|
||||
if args.url==None:
|
||||
args.url='http://127.0.0.1:5000'
|
||||
args.url='http://localhost:5000'
|
||||
|
||||
domain_url=args.url
|
||||
|
||||
conf=conf.replace("domain_url='http://127.0.0.1:5000'", "domain_url='"+domain_url+"'")
|
||||
conf=conf.replace("domain_url='http://localhost:5000'", "domain_url='"+domain_url+"'")
|
||||
|
||||
#domain_url='http://localhost:8080'
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -23,7 +23,7 @@ setup(name='paramecio',
|
|||
include_package_data=True,
|
||||
install_requires=['flask', 'pymysql', 'sqlalchemy', 'colorama'],
|
||||
entry_points={'console_scripts': [
|
||||
'paramecio2 = paramecio2.console:start',
|
||||
'paramecio2 = paramecio2.console:start', 'paramecio2db = paramecio2.libraries.db.dbadmin:start',
|
||||
]},
|
||||
license='GPLV3',
|
||||
platforms = 'any',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue