Compare commits

...

2 Commits

Author SHA1 Message Date
3wc
9b2f5eec60 Allow customising username to reset password of 2024-05-15 23:08:24 -03:00
3wc
8870e4b837 Switch back to default-ignore-all-wp-content 2024-05-15 23:08:12 -03:00
4 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,10 @@
##############################################################################
# REQUIRED SETTINGS (you will need these) #
##############################################################################
# What username should `set_local_password` operate on?
USERNAME=admin
##############################################################################
# COMMON SETTINGS (you may need these) #
##############################################################################

View File

@ -1,3 +1,4 @@
.drone.yml
.env.sample
.gitignore
README.md

4
.gitignore vendored
View File

@ -1,6 +1,8 @@
/.env
/wp-content/twenty*
/wp-content/**
# Add an exception here for any custom plugins or themes to be included, e.g.
#!/wp-content/themes/${REPO_NAME_SNAKE}
/data/**
!/data/.gitkeep

View File

@ -123,7 +123,7 @@ fix_url:
$(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix 'https://$(SITE_URL)' 'http://$(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