This project is read-only.

Orchard and Git repository

Topics: General
Feb 17, 2015 at 6:07 PM
What's required: store a website with content, widgets and modules in Git repository. Then clone the repository, do list of actions and receive in result a website with content, modules and widgets properly functioning.

Are there any practice to achieve this? What's the best possible solution could be?

What I could think of is a migration code that will populate empty Orchard website using a service by creating pages and populating them with an HTML code. But I don't know how to achieve this (if it's a good solution).
Feb 18, 2015 at 9:38 AM
Storing a recipe as part of your project seems perfect for this - it's an XML file that people can either execute during setup or after setup, and contain metadata, data, features to be enabled, commands to execute, and more. Check out the existing recipes in Orchard.Setup/Recipes to see how they look. You can copy one of them as a starting point, and customize it to your needs. Tip: create your content with the Orchard dashboard, export that content using the Import/Export feature, and copy & paste in the content elements you need into your custom recipe.
Feb 18, 2015 at 5:57 PM
Sounds good. Thanks!

Import Export - is this the right one?
Feb 18, 2015 at 11:24 PM
That is the right module, but that one looks very outdated. If you're using Orchard 1.8.1, you'll have the module already available - no need to download it again.