Skip to content

Upgrade for contribution

JRichardsz edited this page Jan 30, 2024 · 2 revisions

To update this wordpress with the official https://wordpress.org/download/releases/ follow these steps

  • Run bash upgrade.sh
  • The previous bash will print a folder. Enter to that folder and execute: docker compose -f docker-compose-upgrade.yml up
  • If no errors, go to http://localhost, select the language and start the database setup
  • Enter these values in the database wizard step
    • Database Name: wordpress
    • Username: usr_wordpress
    • Password: changeme
    • Database Host: host.docker.internal:3306
    • Table Prefix: wp_
  • Run the installation
  • If no errors yo will see this page. Enter the following data if you are contributing to this repository or whatever you want for your own usage
    • Site Title: Wordpress
    • Username: admin
    • Password : ohUCE0BX2t5TFT9Ygw
    • Your Email: admin@mail.com
  • Click on "Install wordpress".
  • If no errors you should see this page
  • Validate if admin credentials work entering them in http://localhost/wp-admin/

If everything is ok, the final step is to generarte a dump of the database and save it in the database folder with name: database.sq.

You could use any mysql IDE (sqlyog, heydi, workbench, dbeaver, etc) or just this command inside of the workspace

docker exec -it wordpress-db-tmp   mysqldump -u root -pchangeme wordpress > ./database/database.sql
sed -i '1d' database/database.sql

Update the line #3 of this readme with the wordpress version and requirements. You coul get the information from here https://wordpress.org/download/

Finally push this code to your fork and or perform a pull request to this repository.

Clone this wiki locally