diff --git a/.env.sample b/.env.sample index cd6f735..bdc5f6e 100644 --- a/.env.sample +++ b/.env.sample @@ -28,6 +28,9 @@ WORDPRESS_DEBUG=1 # INFINITE NERD DEPTH SETTINGS (if you're changing these, good luck!) # ############################################################################## +# Wordpress username (for `set_local_password`) +USERNAME=autonomic + # Docker container names, probably just needs to be set once per project PROJECT_NAME=mont58 diff --git a/makefile b/makefile index 9fd643f..743fc14 100644 --- a/makefile +++ b/makefile @@ -123,7 +123,7 @@ fix_url: $(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix '$(SITE_URL)' '$(PROJECT_NAME).localhost' set_local_password: - $(_DOCKER_COMPOSE) exec -u user wordpress wp user update admin --user_pass=password + $(_DOCKER_COMPOSE) exec -u user wordpress wp user update $(USERNAME) --user_pass=password db_pull: db_fetch db_load fix_url