Problem/Motivation

A 'missing link' in the Drupal CMS Desktop Launcher is the ability to export your site to be deployed elsewhere.

A one-click button to do just that is in the long term plans, but may not be prioritized for some time.

Issue fork drupal_cms-3580604

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hestenet created an issue. See original summary.

hestenet’s picture

Issue summary: View changes
hestenet’s picture

Issue summary: View changes

phenaproxima’s picture

Thanks for submitting these docs. But we can, and must, do better than this.

I think we should do something more like this:

Write a new drush site:archive command, which creates a self-executing phar file. That phar file contains:

  • The exported config
  • The exported content
  • The composer.json and composer.lock files
  • A fully packaged copy of composer.phar

You FTP this file to the server and SSH in. Then you run php my-site.phar mysql://my:password@dbserver/drupal

This extracts everything into the current directory, runs composer install to install all dependencies, and then drush site:install --yes --existing-config --config-dir=./config --db-url=mysql://my:password@dbserver/drupal

Behold: that restores the Drupal site. With one effing command.

I think that'd be a hell of a lot better.

hestenet’s picture

To paraphrase what I said in chat:

Well sure! You could *just* make the documentation unnecessary. Haha.

But if you want some runway in terms of time before doing that, we could use the docs as a temporary step. (Once they're up to snuff anyway).

pameeela’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)
Related issues: +#3581020: Add a command to export site from launcher

We had somewhat of a plan for this already, @phenaproxima and I were able to get a site from the launcher onto Upsun hosting relatively easily. But we don't plan to provide the documentation for how to do this from end to end, because it should live with the providers to ensure it is up to date.

I've linked the relevant issue for producing a modified export (we just used the existing site:export command in our testing). I've also deleted most of the IS because much of this info was incorrect and it doesn't really serve anyone for it to be out there and discoverable.

And @phenaproxima's mad science may continue along the lines he was already pursuing but that should be done in separate issues with defined scope.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.