Skip to content

Cambrian Explosion Importer - #66

Merged
EvanK merged 9 commits into
masterfrom
57-cambrian-importer
Oct 14, 2015
Merged

EvanK merged 9 commits into
masterfrom
57-cambrian-importer

Conversation

@EvanK

@EvanK EvanK commented Jul 13, 2015

Copy link
Copy Markdown
Contributor

Refs #57

Structure:

  • Actual node import script (should be compatible with 0.10 or higher), lives in Evolution itself
  • Bash script that serves as entry point, lives in bin directory of the generated site
  • Capistrano task added, for executing arbitrary sql files against a stage
  • Handful of npm dependencies added/updated

Workflow:

  1. Install the Cambrian Explosion (zip) plugin on a non-Evolution site -- should support any of:
    • vanilla wordpress
    • multisite wordpress
    • Genesis sites
  2. Activate said plugin and use it to generate an export zipfile
  3. Generate an Evolution site, install bower and bundle dependencies, and vagrant up
  4. From the Evolution site directory, invoke the importer: ./bin/import
  5. Supply the path to zipfile (from step 2) when prompted
  6. Follow any further prompts
  7. Visit the local vagrant site in your browser, that should have all content + themes + plugins. Some activation, configuration, and cleanup may be necessary

@EvanK EvanK mentioned this pull request Jul 31, 2015
@EvanK

EvanK commented Jul 31, 2015

Copy link
Copy Markdown
Contributor Author

If you'd like to help test the export/import process, the first step is to install the Cambrian Explosion plugin in the existing Wordpress site that you'd like to port over. Activate and run the plugin, and it will download a zipfile of your site content.

Next, you'll need to pull the importer branch down to your local Yeoman cache:

# latest evolution version to override
EVO_GEN_VERSION="v1.2.4"

# remove any existing evolution from yeoman cache
mkdir -p ~/.cache/yeoman/evolution/wordpress
rm -rf ~/.cache/yeoman/evolution/wordpress/v1.*

# clone latest evolution into yeoman cache
git clone https://github.com/evolution/wordpress.git ~/.cache/yeoman/evolution/wordpress/"$EVO_GEN_VERSION"

# cd to cloned codebase, checkout importer branch and install npm deps
cd ~/.cache/yeoman/evolution/wordpress/"$EVO_GEN_VERSION"
git checkout 57-cambrian-importer
npm install

Finally, you'll want to generate a new Evolution site into which you'll import the zipfile of your old site's content:

# create and cd to directory for new Evolution site
mkdir ~/Sites/SomeTestSite.com
cd ~/Sites/SomeTestSite.com

# generate and prepare a new site
yo evolve wordpress
cp -r ~/.cache/yeoman/evolution/wordpress/"$EVO_GEN_VERSION"/ ./bower_components/evolution-wordpress/
vagrant up

# invoke the importer
chmod +x ./bin/import
./bin/import

EvanK added 3 commits October 13, 2015 18:57
When importing from a multisite install, this was causing "You Do Not Have Sufficient Permissions to Access This Page" errors
@EvanK EvanK changed the title [RFC] Cambrian Explosion Importer Cambrian Explosion Importer Oct 14, 2015
EvanK added a commit that referenced this pull request Oct 14, 2015
@EvanK
EvanK merged commit d296a16 into master Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant