13 lines
379 B
Python
13 lines
379 B
Python
# imports - standard imports
|
|
import sys
|
|
|
|
# imports - module imports
|
|
from frappe.integrations.frappe_providers.frappecloud import frappecloud_migrator
|
|
|
|
|
|
def migrate_to(local_site, frappe_provider):
|
|
if frappe_provider in ("frappe.cloud", "frappecloud.com"):
|
|
return frappecloud_migrator(local_site)
|
|
else:
|
|
print("{} is not supported yet".format(frappe_provider))
|
|
sys.exit(1)
|