Browse Source

Make server storage the default.

Remove --server-storage argument.
pull/2392/merge
comfyanonymous 10 months ago
parent
commit
53c8a99e6c
  1. 2
      app/user_manager.py
  2. 6
      comfy/cli_args.py

2
app/user_manager.py

@ -94,7 +94,7 @@ class UserManager():
else:
user_dir = self.get_request_user_filepath(request, None, create_dir=False)
return web.json_response({
"storage": "server" if args.server_storage else "browser",
"storage": "server",
"migrated": os.path.exists(user_dir)
})

6
comfy/cli_args.py

@ -112,8 +112,7 @@ parser.add_argument("--windows-standalone-build", action="store_true", help="Win
parser.add_argument("--disable-metadata", action="store_true", help="Disable saving prompt metadata in files.")
parser.add_argument("--server-storage", action="store_true", help="Saves settings and other user configuration on the server instead of in browser storage.")
parser.add_argument("--multi-user", action="store_true", help="Enables per-user storage. If enabled, server-storage will be unconditionally enabled.")
parser.add_argument("--multi-user", action="store_true", help="Enables per-user storage.")
if comfy.options.args_parsing:
args = parser.parse_args()
@ -125,6 +124,3 @@ if args.windows_standalone_build:
if args.disable_auto_launch:
args.auto_launch = False
if args.multi_user:
args.server_storage = True
Loading…
Cancel
Save