Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ExpressionEngine Workflow

D75c53668ec5762a933c447b8e50226c?s=47 Noah Stokes
October 16, 2012

ExpressionEngine Workflow

A presentation I gave at EECI2012 detailing how we develop ExpressionEngine projects with a distributed team. Details include how we setup EE for multiple environments and how we use Git to manage our builds.

D75c53668ec5762a933c447b8e50226c?s=128

Noah Stokes

October 16, 2012
Tweet

Transcript

  1. ExpressionEngine Workflow Noah Stokes

  2. This is a raptor.

  3. None
  4. What do you mean by distributed?

  5. What are some of the pitfalls of running EE distributed?

  6. Git - The Secret Sauce

  7. The Setup

  8. EE in a Repo

  9. Read Me 1. Create a database for the project 2.

    Import the contents of import-me.sql to the database 3. Modify the database credentials in sys/expressionengine/ config/database.php 4. Modify the configuration in sys/expressionengine/config/ config.php 5. Access the EE admin at http://<siteurl>/admin.php using: ! ! Username: admin ! ! Password: admin 6. Go to Deeploy Helper and adjust necessary EE settings 7. Dominate life!
  10. Setup Your Paths $config['theme_folder_path'] = $config['tmpl_file_basepath'] = Setup a symlink

    to Projects dir
  11. Create an $env

  12. env.php

  13. admin.php & index.php

  14. config.php

  15. database.php

  16. index.sample.php config.sample.php database.sample.php Sample Files

  17. .gitignore

  18. Save Templates As Files

  19. Work Flow

  20. HTML First

  21. Clone the Repo

  22. Setup a Database

  23. Setup MAMP

  24. Remove .git files

  25. Create a New Repository

  26. Make a Commit

  27. Integrate Our Templates

  28. Example: /press/ /press/article/article-url-title

  29. Example: /press/ /press/article-url-title

  30. Example: {if segment_2 == ‘’} Press index goes here {if:else}

    Press article goes here, (where segment_2 is the url_title parameter for the entries call) {/if}
  31. Commit, Commit, Commit

  32. The first rule of databases is: everything is in the

    database once
  33. EE Map + Channel - Custom Fields [ Field Type

    ] * Categories -------------------------------------------------------- + Home - Title Black [ Text Input ] - Title White [ Text Input } - Slideshow [ Matrix (Image, URL) ] - Handpicked Local Services [ Playa from Providers ] - From the Blog [ Playa from Blog ] - Special Offer [ Playa from Providers ]
  34. Channels

  35. Custom Fields

  36. Categories, Snippets, Variables

  37. {cat_id:category_name}

  38. Staging

  39. Production

  40. Issues

  41. Database Migrations Site Manager

  42. Add Ons

  43. Benefits

  44. Questions?

  45. Noah Stokes @motherfuton Thank You!