49 votes
Accepted

What's the best practice for handling data migration and organization across development environments?

My general approach for this, not just with Craft, but with all CMSes is to have a shared database for development. It's not the most ideal solution, since there can be overwriting of work, but it at ...
user avatar
18 votes

What's the best practice for handling data migration and organization across development environments?

Hmm. I started out having a feeling existing tools might be a best approach here. I soon found that even with the better of these, except for in-dev patching, we may want to wait for a Craft ...
user avatar
  • 1,697
17 votes
Accepted

How do I migrate a Wordpress project to Craft CMS?

At this point in time, you have a few options: Import Plugins As of this post, there are a few partial import plugins available and rumors that a few others might be on their way. Sprout Import - ...
user avatar
  • 13.3k
17 votes
Accepted

How do I import data into Craft?

There is craftimport which is an 'unsupported' starting point for importing entries from an XML source. https://github.com/clearbold/craftimport There is also Import: https://github.com/...
user avatar
  • 1,661
15 votes

How do I import data into Craft?

If you’re comfortable with PHP, Craft has some plugin APIs that make creating content relatively painless. For example, EntriesService::saveEntry().
user avatar
13 votes

How do I migrate a Wordpress project to Craft CMS?

Here is how I did it on a recent project: Create a temporary WP site to work in: I installed WP locally, imported the database, and downloaded the wp-content/uploads folder. You don't need the theme ...
user avatar
13 votes

What's the best practice for handling data migration and organization across development environments?

Note: This method is not for the faint of heart and might not be for everybody, but can be useful in some situations. One thing we do (at Airtype Studio, where I work) for larger installations is set ...
user avatar
  • 630
11 votes

How do I import data into Craft?

As far as ExpressionEngine goes, it looks like Mark Reeves has cooked up a starter plugin for that purpose. Bob Olde Hampsink made an import plugin as well that works with CSV's.
user avatar
  • 3,921
10 votes

What's the best practice for handling data migration and organization across development environments?

I work with git for all my projects, I had to spend some time figuring out how to set up the folders and files, i.e.: what to gitignore. But it now works pretty well. All the core files are ...
user avatar
  • 1,369
10 votes
Accepted

Migrating a whole website between Craft instances

Make sure both Craft installs are up-to-date. Craft's license is saved in craft/config/license.key, make a backup of your purchased license file. Move all your files/directories except: /craft/app/ ...
user avatar
  • 8,326
10 votes
Accepted

Migrated Server, Now Getting Logged Out Constantly

Most likely wherever Apache/PHP is configured to save session files doesn't exist or isn't writable. If you've got the overridePhpSessionLocation config setting set to true, then that will be in ...
user avatar
  • 66.5k
9 votes

What's the best practice for handling data migration and organization across development environments?

I found a great blog post where the author uses Phinx and MySQL Query Log to create database migrations. I summarized its content into 10 easy steps: Step 1 Enable the MySQL Query Log on your dev ...
user avatar
9 votes

What's the best practice for handling data migration and organization across development environments?

We currently handle this with database dumps from dev and taking screenshots of config screens and attaching them to git pull requests. There needs to be a better way though. The only CMS that has ...
user avatar
  • 806
8 votes
Accepted

Automated deployment with content migrations and structural changes

Something I wish I knew a long time ago, as it has bitten us quite a few times already in the past. Nothing as bad as having an automated deployment process that fails once in a while. I'm sharing it ...
user avatar
7 votes
Accepted

Does a plugin runs it's migrations on install?

The object of migrations is to provide a way for existing installations of your plugin to get the updated db schema as you update your plugin, without having to uninstall (which would mean they would ...
user avatar
  • 4,519
7 votes
Accepted

Craft 3: Update database after CMS upgrade via console command

You can use Yii's migrate console command. Triggered in Craft 3 via craft migrate --type=app.
user avatar
  • 66.5k
6 votes

Programatically Adding Fields to a Layout

While I am adding them from a plugin, I ran into a similar issue as you, and like you, I didn't like the "recreate the layout from scratch" method the linked answer used. I know this question is old, ...
user avatar
  • 181
6 votes
Accepted

Moving from staging (MAMP) to live production server

Everything looks good to go more or less, but #4 can be improved upon by creating a multi-environment config file. This way, instead of having to change your site urls and base path (for assets) in ...
user avatar
  • 1,932
6 votes
Accepted

Running module migrations

Per the Modules vs. Plugins docs, only plugins get their own migration track. Modules are considered part of the project (like templates and config files), so if there are any DB changes that need to ...
user avatar
5 votes

How do I import data into Craft?

It's not mentioned above, but in my experience the FeedMe plugin is by far the best way to import content.
user avatar
5 votes

What's the best practice for handling data migration and organization across development environments?

I'm currently implementing a workflow that's very efficient for us. The trick is to use Backup Pro to "backup" locally and then "restore" once the site is deployed. This essentially version controls ...
user avatar
  • 326
5 votes

How do I migrate a Wordpress project to Craft CMS?

If you're just trying to migrate data, the most simple method would be to use a WordPress plugin to export your posts to a CSV and import it into Craft using this Import Plugin by Bob Olde Hampsink. ...
user avatar
5 votes
Accepted

Why would I get a "CHttpRequest is unable to determine the request URI" when creating a migration?

That's a bug in our RedactorClips plugin, actually. Just fixed it, so if you grab the latest from here (https://github.com/pixelandtonic/RedactorClips), yiic still should run fine.
user avatar
  • 66.5k
5 votes
Accepted

Migration of Craft CMS from one host to another

You need a copy of the database which you can either export via Craft's Control Panel or via phpMyAdmin or a similar database management tool. You need these folders: craft/templates craft/...
user avatar
  • 428
5 votes
Accepted

Migrating Craft site to another server --- throws 404 for all pages but homepage

99% chance that it is because the .htaccess file did not come over when you copied the files, as it is a hidden file. Copy that over to your new webroot and those interior pages should properly work.
user avatar
5 votes
Accepted

Importing members from EE without password reset

It would be possible to write a plugin that provides an alternative login controller action, based on UsersController::actionLogin(). The difference would be that, if normal login fails, it could try ...
user avatar
5 votes

Has someone figured out Craft 3 content migrations?

This is a plugin I'm working on to do exactly what you are after. https://m.youtube.com/watch?v=n6ko2PKUqAo&feature=youtu.be The syntax to figure out how to create sections, elements etc is ...
user avatar
5 votes
Accepted

Has someone figured out Craft 3 content migrations?

For now (when the docs are not ready) you look into the craft source how things are saved for example: https://github.com/craftcms/cms/blob/develop/src/controllers/FieldsController.php#L250 Based on ...
user avatar
  • 308
5 votes

Migrate path from 2 to 3?

The documentation posts this link: Upgrading from Craft 2 Mijingo has a tutorial: Upgrading Craft 2 to Craft 3 There is a hangout on the topic on Straight Up Craft: Migrating a website with plugins ...
user avatar
  • 13.3k
5 votes

Migrating from Craft CMS to WordPress

It’s likely possible but would be tricky, since Craft has much more flexible content modeling features than WP. It would be a “lossy” conversion process, similar to converting a WAV file to a low ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible