⚙️ Process

Creating a new site

Setting up a new site in 25 easy steps

Initial Setup

  • Create a new repo on Github
    • Set Owner to ed-digital, and name your repo like some-client-name.
    • Set Repository Template to ed-digital/eddev-starter-theme
    • Hit Create repository
  • Create a new site in Local, on your computer.
    • Use the default settings
    • Be sure to use ed_admin as the username, and create a secure password using 1Pass or similar, and the email address should be web@ed.com.au
    • Save the username and password to 1Pass.
  • Install the following plugins:
    • Advanced Custom Fields Pro (download) (login details in 1Pass)
    • Add b3JkZXJfaWQ9NDA3NDN8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE0LTA5LTI3IDA4OjUwOjIx as the key for ACF Pro under 'Custom Fields > Updates'
    • Yoast SEO — install from plugins dashboard
    • Nested Pages — install from plugins dashboard
    • Admin Menu Editor — install from plugins dashboard (use this to hide unused sidebar items, and tidy up the menu for clients.)
  • Under Settings -> General, set Timezone to Sydney (or the appropriate timezone).
  • Make sure that all the installed plugins have been activated.
  • Clone your newly created theme to wp-content/themes/, making sure that the repo name and the theme folder name are identical.
  • Run the following commands inside the theme folder
    • composer update
    • yarn
    • yarn add --dev eddev
    • yarn setup
  • Activate the theme under Appearance > Themes
  • Run yarn dev

Initial Flywheel Setup

  • Create a new site on Flywheel
    • Select 'My Organisation'
    • The username and password are irrelevant, as they'll soon be overridden with your locally created details.
  • Once complete, restart Local, and do an initial push to the new site, deploying to 'Production' with 'Include Database' selected.