Plugin to send data to desktop CP
This commit is contained in:
@@ -26,8 +26,8 @@ def getOptions(base_path, args):
|
||||
dest = 'daemonize', help = 'Daemonize the app')
|
||||
parser.add_argument('--quiet', action = 'store_true',
|
||||
dest = 'quiet', help = 'No console logging')
|
||||
parser.add_argument('--binary', action = 'store_true',
|
||||
dest = 'binary', help = 'Running from binary build')
|
||||
parser.add_argument('--binary_port', default = None,
|
||||
dest = 'binary_port', help = 'Running from binary build')
|
||||
parser.add_argument('--nogit', action = 'store_true',
|
||||
dest = 'nogit', help = 'No git available')
|
||||
|
||||
@@ -77,7 +77,7 @@ def runCouchPotato(options, base_path, args, handle = None):
|
||||
Env.set('console_log', options.console_log)
|
||||
Env.set('daemonize', options.daemonize)
|
||||
Env.set('quiet', options.quiet)
|
||||
Env.set('binary', options.binary)
|
||||
Env.set('binary_port', options.binary_port)
|
||||
Env.set('args', args)
|
||||
Env.set('options', options)
|
||||
|
||||
@@ -90,7 +90,7 @@ def runCouchPotato(options, base_path, args, handle = None):
|
||||
server_log.disabled = True
|
||||
|
||||
# Only run once when debugging
|
||||
if os.environ.get('WERKZEUG_RUN_MAIN') or not debug or options.binary:
|
||||
if os.environ.get('WERKZEUG_RUN_MAIN') or not debug or options.binary_port:
|
||||
|
||||
# Logger
|
||||
logger = logging.getLogger()
|
||||
@@ -155,7 +155,7 @@ def runCouchPotato(options, base_path, args, handle = None):
|
||||
from couchpotato import app
|
||||
api_key = Env.setting('api_key')
|
||||
url_base = '/' + Env.setting('url_base').lstrip('/') if Env.setting('url_base') else ''
|
||||
reloader = debug is True and not options.daemonize and not options.binary
|
||||
reloader = debug is True and not options.daemonize and not options.binary_port
|
||||
|
||||
# Basic config
|
||||
app.secret_key = api_key
|
||||
|
||||
Reference in New Issue
Block a user