You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than work on an upgrade path specifically for Genesis, I'm thinking it would be preferable to build a generic importer to work with any existing wordpress site. This would be a proper successor to Genesis' "old" stage.
It should:
fetch all files for the following (preferably via SSH but falling back to FTP when necessary, or even a local archive of the doc root?)
uploads
plugins
themes
import an existing db via mysql (with/out SSH tunnel), falling back to a prepared sql dump
start the evolution generator and let the user follow the usual prompts, then drop in all the above
Funny enough, I find myself wanting to use Genesis for non-WP projects, as well. I really like the environment setup, but sometimes don't need WP, though Genesis required a wp-config.php file to be present.
@ericrasch ha! I've thought that too. Just having the simplicity of the packaged environments and commands to work with each makes it awesome to work with.
After some discussion, I'm thinking the best solution here would consist of two pieces:
a wordpress plugin to install on the old site that, from an admin page, initiates a download of the wp-content and dumped db (all packaged up as a single zip/tar/gz archive)
a ./bin/import script in the generated Evolution site that, given the above archive, extracts and installs any plugins, themes, uploads, and sql data into the current Evolution site
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:
# 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/v1.1.3
# cd to cloned codebase, checkout importer branch and install npm depscd~/.cache/yeoman/evolution/wordpress/v1.1.3
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/v1.1.3/ ./bower_components/evolution-wordpress/
vagrant up
# invoke the importer
./bin/import
Activity
jimmynotjim commentedon May 22, 2015
Would love this for my personal projects. Porting non-Genesis sites was always kinda tricky.
ericrasch commentedon May 27, 2015
Funny enough, I find myself wanting to use Genesis for non-WP projects, as well. I really like the environment setup, but sometimes don't need WP, though Genesis required a
wp-config.phpfile to be present.jimmynotjim commentedon May 27, 2015
@ericrasch ha! I've thought that too. Just having the simplicity of the packaged environments and commands to work with each makes it awesome to work with.
EvanK commentedon May 28, 2015
After some discussion, I'm thinking the best solution here would consist of two pieces:
./bin/importscript in the generated Evolution site that, given the above archive, extracts and installs any plugins, themes, uploads, and sql data into the current Evolution siteNow...to dive into the wordpress codex!
EvanK commentedon Jun 13, 2015
I've got the export bit working (see the plugin: evolution/wordpress-plugin-cambrian@eb9e5cfca4)!
Now to write an import utility on the other side :D
EvanK commentedon Jul 13, 2015
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:
Finally, you'll want to generate a new Evolution site into which you'll import the zipfile of your old site's content:
EvanK commentedon Jul 13, 2015
Aaaand I forgot a step, before the
vagrant up:jimmynotjim commentedon Jul 18, 2015
Sweet! Going to give this a shot this weekend and will report back.
EvanK commentedon Jul 31, 2015
Closing this issue, please see #66