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 guides for importing existing databases and uploads to the local environments #114

Open
8 tasks
roborourke opened this issue Jan 30, 2020 · 2 comments
Open
8 tasks
Labels
should have Should be done, medium priority for now

Comments

@roborourke
Copy link
Contributor

roborourke commented Jan 30, 2020

The getting started guide assumes people are starting from scratch and doesn't help much with regards to importing existing databases.

We should add a guide for this and link to it from the end of the getting started section as well.

Note: Blocked on humanmade/altis-dev-tools#206 which will change which commands to document and run.


Acceptance criteria:

  • Go through the process of downloading a db backup and uploads from Altis Dashboard taking screenshots as you go of:
    • The Imp / Exp tab and screen
    • The Popup with both Database & Uploads selected
  • Unzipping the output
  • Copying uploads to content/uploads
  • Copying the db zip file to your project root or path under the project root

For Local Chassis:

  • Document steps needed to import the database:
    • Import: composer chassis exec -- wp db import <db file path>
    • Search & replace with example

For Local Server:

  • Document steps to import db:
    • Import: composer server cli -- db import <db file path>
    • Search & replace with example, note must be to a subdomain of altis.dev
  • Document synchronising uploads to S3 container:
    • composer server cli -- s3-uploads upload-directory content/uploads uploads
    • Explainer eg. S3 is more like a database than standard file storage
    • Note that anything uploaded to the site will automatically be synced to the local uploads directory

Side note that for Altis v4 image import will be composer server import-uploads, we can update that once this initial guide has been merged and backported.

Troubleshooting section:

  • Flushing the cache
@roborourke roborourke changed the title Add guides for importing existing databases to the local environments Add guides for importing existing databases and uploads to the local environments Mar 19, 2020
@rmccue rmccue added the should have Should be done, medium priority for now label May 6, 2021
@rmccue
Copy link
Member

rmccue commented Sep 30, 2021

Related: humanmade/altis-local-server#345

@rmccue
Copy link
Member

rmccue commented Sep 30, 2021

These steps may have changed since we originally wrote this; additionally, the simplified command we're discussing in humanmade/altis-local-server#345 are likely to change the process here again.

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

4 participants