diff --git a/README.md b/README.md index 551f6b9..38740d3 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,17 @@ HTML_VOLUME=test_html_staging ## 📂 Configuration Files -Two important Nginx configuration files are available in the project directory. After editing, perform a restart: +Three important configuration files are available in the project directory: ```bash +Nginx (after editing, perform a restart): + ./default.conf # generate-compose-nginx.sh respects user added changes ./nginx.conf # Manually customizable configuration + +Wordress: + +./wp-config.php # generated once by generate-compose-nginx.sh and respects user added changes + ``` --- @@ -84,7 +91,8 @@ If you want a **fully automated** upgrade, use the `wp-rocket-launch.sh` script: ✅ Automatically cleans up existing containers and volumes ✅ Builds the custom WordPress image ✅ Deploys the new version with minimal manual intervention -✅ Copies new installation files to production +✅ Copies new installation files to production +✅ Wordpress salt keys are shuffled Alternatively, follow the manual upgrade process below. diff --git a/wp-rocket-launch.sh b/wp-rocket-launch.sh index f817a38..c0e900a 100755 --- a/wp-rocket-launch.sh +++ b/wp-rocket-launch.sh @@ -43,3 +43,8 @@ fi echo "📂 Copying new WordPress content to wp-content..." docker compose exec wordpress_${COMPOSE_PROJECT_NAME} bash -c "cp -a /var/www/html/wp-content-new/* /var/www/html/wp-content/" echo "✅ WordPress content successfully copied!" + +# Step 7: Shuffle salts +echo "📂 Shuffle the salt keys...." +docker compose exec wpcli_${COMPOSE_PROJECT_NAME} wp config shuffle-salts +echo "✅ Wordpress salt keys sucessfully shuffled!" \ No newline at end of file