Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add import feature to sync a cloud environment to local server #481

Open
2 tasks
roborourke opened this issue May 13, 2022 · 2 comments
Open
2 tasks

Add import feature to sync a cloud environment to local server #481

roborourke opened this issue May 13, 2022 · 2 comments
Labels
should have Should be done, medium priority for now

Comments

@roborourke
Copy link
Contributor

roborourke commented May 13, 2022

Work in progress here: #345

Description

It's a common workflow to import a backup from the cloud environment to work on locally, in particular when reproducing bugs. We can make this pretty straightforward by handling the download, unpacking and subsequent series of CLI commands required:

  • db import

  • search replace

  • media upload

  • s3 import

  • cache flush

  • ES reindexing

  • Developers can copy an export URL Altis Dashboard and append it to the command composer server import. The command should be able to receive a URL or a path.

Acceptance criteria:

  • Developers should be able to import a backup with a command like composer server import <URL>/<PATH>, with the URL being an export URL from the Altis Dashboard.
  • Document the feature in the local-server docs.
@roborourke roborourke added should have Should be done, medium priority for now to-refine-dev labels May 13, 2022
@roborourke
Copy link
Contributor Author

Question: should we look at allowing for some kind of default cloud URL configuration per environment? Or document how a team can add composer scripts if the defaults don't work for them eg:

{
    "scripts": {
        "import-staging": "@composer server import-from-cloud --from-url custom-staging-domain.com"
    }
}

@veselala veselala added to refine Issues needing refinement. and removed to-refine-dev labels Jun 15, 2022
@wisyhambolu wisyhambolu changed the title Add import feature to sync a cloud environment to local server SPIKE: Add import feature to sync a cloud environment to local server Jun 7, 2023
@wisyhambolu
Copy link
Contributor

@wisyhambolu wisyhambolu removed the to refine Issues needing refinement. label Jun 7, 2023
@wisyhambolu wisyhambolu changed the title SPIKE: Add import feature to sync a cloud environment to local server Add import feature to sync a cloud environment to local server Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
should have Should be done, medium priority for now
Projects
None yet
Development

No branches or pull requests

3 participants