Skip to content

Instantly share code, notes, and snippets.

@andyxmas
Created January 4, 2018 20:43
Show Gist options
  • Save andyxmas/5789f028f983ecb8a76e94072759d3ba to your computer and use it in GitHub Desktop.
Save andyxmas/5789f028f983ecb8a76e94072759d3ba to your computer and use it in GitHub Desktop.
wordpress lando
name: remadeagency
recipe: wordpress
config:
webroot: .
events:
post-db-import:
# Set PROD_URL and DEV_URL values in .env file
# Performs search and replace on database after import
- appserver: cd $LANDO_WEBROOT && wp search-replace $PROD_URL $DEV_URL
- appserver: cd $LANDO_WEBROOT && wp cache flush
- echo "Replaced site URL in database"
post-start:
# Applies lando specific wp-config file
- appserver: cd $LANDO_WEBROOT && cp wp-config-lando.php wp-config.php
- echo "Applied lando wp-config"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment