Skip to content

Instantly share code, notes, and snippets.

@MaximeCulea
Last active August 7, 2020 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaximeCulea/880bb9f998d3cc6e49254de4ecf8eea3 to your computer and use it in GitHub Desktop.
Save MaximeCulea/880bb9f998d3cc6e49254de4ecf8eea3 to your computer and use it in GitHub Desktop.
While using Bedrock, Git, work, sync and load the site under Local By Flywheel.
  1. Try to access the Local adminer in order to generate it

  2. Copy all credentials into the .env:
    WP_ENV=local

    DB_NAME=local
    DB_USER=root
    DB_PASSWORD=root
    DB_PREFIX=local_

  3. Delete everything into the Local docroot (app/public) folder

  4. Copy and sync the gited folder to the "app" Local folder

  5. Finally map the "web" application docroot with the Local docroot "public" with a symlink. Doing like so, is one way: it allows to things to go to Local, but not reverse:

  • on windows: mklink /D "web" "public"
  • on linux: ln -s web public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment