246 | 246 |
|
247 | 247 |
--- a/manage.py
|
248 | 248 |
+++ b/manage.py
|
249 | |
@@ -105,9 +105,9 @@ def sql_shell():
|
|
249 |
@@ -111,9 +111,9 @@ def sql_shell():
|
250 | 250 |
@click.command(help='Checks configuration and faraday status.')
|
251 | 251 |
@click.option('--check_postgresql', default=False, is_flag=True)
|
252 | 252 |
@click.option('--check_faraday', default=False, is_flag=True)
|
|
258 | 258 |
|
259 | 259 |
selected = False
|
260 | 260 |
exit_code = 0
|
261 | |
@@ -121,9 +121,9 @@ def status_check(check_postgresql, check
|
|
261 |
@@ -127,9 +127,9 @@ def status_check(check_postgresql, check
|
262 | 262 |
status_check_functions.print_faraday_status()
|
263 | 263 |
selected = True
|
264 | 264 |
|
|
282 | 282 |
from requests.exceptions import InvalidURL, ConnectionError
|
283 | 283 |
from colorama import Fore, Back, Style
|
284 | 284 |
from server.utils.daemonize import is_server_running
|
285 | |
@@ -104,37 +104,37 @@ def check_client():
|
|
285 |
@@ -106,37 +106,37 @@ def check_client():
|
286 | 286 |
return False
|
287 | 287 |
|
288 | 288 |
|
|
351 | 351 |
|
352 | 352 |
|
353 | 353 |
def check_credentials():
|
354 | |
@@ -226,35 +226,35 @@ def print_faraday_status():
|
|
354 |
@@ -229,35 +229,35 @@ def print_faraday_status():
|
355 | 355 |
.format(yellow=Fore.YELLOW, white=Fore.WHITE))
|
356 | 356 |
|
357 | 357 |
|
358 | 358 |
-def print_depencencies_status():
|
359 | 359 |
- """Prints Status of the dependencies using check_server_dependencies() and check_client_dependencies()"""
|
360 | |
+#def print_depencencies_status():
|
361 | |
+# """Prints Status of the dependencies using check_server_dependencies() and check_client_dependencies()"""
|
362 | |
|
|
360 |
-
|
363 | 361 |
- status, server_dep = check_server_dependencies()
|
364 | 362 |
- if status == True:
|
365 | 363 |
- print('[{red}-{white}] Some server dependencies are old: [' + ', '.join(server_dep) + ']. Update them with \"pip install -r requirements_server.txt -U\"') \
|
|
385 | 383 |
- else:
|
386 | 384 |
- print('[{green}+{white}] Client dependencies met'\
|
387 | 385 |
- .format(green=Fore.GREEN, white=Fore.WHITE))
|
388 | |
-
|
|
386 |
+#def print_depencencies_status():
|
|
387 |
+# """Prints Status of the dependencies using check_server_dependencies() and check_client_dependencies()"""
|
|
388 |
|
389 | 389 |
+# status, server_dep = check_server_dependencies()
|
390 | 390 |
+# if status == True:
|
391 | 391 |
+# print('[{red}-{white}] Some server dependencies are old: [' + ', '.join(server_dep) + ']. Update them with \"pip install -r requirements_server.txt -U\"') \
|
|
394 | 394 |
+# elif status == 0:
|
395 | 395 |
+# print('[{red}-{white}] Client dependencies not met: [' + ', '.join(server_dep) + '] Install them with \"pip install -r requirements_server.txt -U\"')\
|
396 | 396 |
+# .format(red=Fore.RED, white=Fore.WHITE)
|
397 | |
+#
|
|
397 |
+
|
398 | 398 |
+# else:
|
399 | 399 |
+# print('[{green}+{white}] Server dependencies met' \
|
400 | 400 |
+# .format(green=Fore.GREEN, white=Fore.WHITE))
|
|
403 | 403 |
+# if status == True:
|
404 | 404 |
+# print('[{red}-{white}] Some client dependencies are old: [' + ', '.join(client_dep) + ']. Update them with \"pip install -r requirements.txt -U\"') \
|
405 | 405 |
+# .format(red=Fore.RED, white=Fore.WHITE)
|
406 | |
+#
|
|
406 |
+
|
407 | 407 |
+# elif status == 0:
|
408 | 408 |
+# print('[{red}-{white}] Client dependencies not met: [' + ', '.join(client_dep) + ']. Install them with \"pip install -r requirements.txt -U\"')\
|
409 | 409 |
+# .format(red=Fore.RED, white=Fore.WHITE)
|
410 | |
+#
|
|
410 |
+
|
411 | 411 |
+# else:
|
412 | 412 |
+# print('[{green}+{white}] Client dependencies met'\
|
413 | 413 |
+# .format(green=Fore.GREEN, white=Fore.WHITE))
|
|
415 | 415 |
|
416 | 416 |
def print_config_status():
|
417 | 417 |
"""Prints Status of the configuration using check_credentials(), check_storage_permission() and check_open_ports()"""
|
418 | |
@@ -294,8 +294,8 @@ def full_status_check():
|
|
418 |
@@ -297,8 +297,8 @@ def full_status_check():
|
419 | 419 |
print('\n{white}Checking if Faraday is running...'.format(white=Fore.WHITE))
|
420 | 420 |
print_faraday_status()
|
421 | 421 |
|