Merge pull request #27228 from arunmathaisk/develop

fix: http to https for url
This commit is contained in:
Akhil Narang 2024-07-29 17:11:51 +05:30 committed by GitHub
commit feef3b57c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -675,12 +675,11 @@ def migrate(context, skip_failing=False, skip_search_index=False):
@click.command("migrate-to")
@pass_context
def migrate_to(context):
def migrate_to():
"Migrates site to the specified provider"
from frappe.integrations.frappe_providers import migrate_to
migrate_to(context)
migrate_to()
@click.command("run-patch")

View file

@ -7,7 +7,7 @@ from frappe.core.utils import html2text
def get_remote_script(remote_site):
print("Retrieving Site Migrator...")
request_url = f"http://{remote_site}/api/method/press.api.script"
request_url = f"https://{remote_site}/api/method/press.api.script"
request = requests.get(request_url)
if request.status_code / 100 != 2: