Migrating/Seeding Page Types
Created 4 years ago by sumentuten

Hi guys! Been trying out PyroCMS3 for a week now. And I've created my Page Types locally, assigning fields and creating templates for them. And now I have to migrate them to my staging server. What is the best way to do this? Can this be done using the streams platform? How?

ryanthompson  —  4 years ago Best Answer

You can set these up as a seed in some cases that may be what you want to do - but for migration to stage / remote I usually do this:

  • Mark remote as INSTALLED=false in .env
  • Import DB
  • php artisan streams:compile
  • Mark remote as INSTALLED=true again.

That will effectively push everything up (be sure to upload your file uploads too).

ryanthompson  —  4 years ago

We're investigating stashing migrations for everything in the system but.. not entirely sure what that looks like right now.

sumentuten  —  4 years ago

Worked smoothly. Thanks for the help!