Created
January 4, 2018 20:43
-
-
Save andyxmas/5789f028f983ecb8a76e94072759d3ba to your computer and use it in GitHub Desktop.
wordpress lando
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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