[Blueprints] Install WordPress without WP-CLI#151
Draft
Conversation
|
And even https://github.com/WordPress/sqlite-database-integration/blob/2049cf0a21fd0fa6a70e0d67678ee26eded20c57/.github/workflows/mysql-proxy-tests.yml has to use third-party GH Actions repos even to set up php and composer It would be great to have a complete example of installing composer+WP, currently I had to use sth like this: - name: Prerequisites
run: |
sudo apt install php-cli php-mysql php-dom mysql-server sqlite3 jq
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- name: Setup WordPress
run: |
sudo service mysql start
sudo mysql -h 127.0.0.1 --user=root --password=root <<< "CREATE USER 'wpssguser'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'wpssgpass'; CREATE DATABASE wpssgdb; GRANT ALL PRIVILEGES ON wpssgdb.* TO 'wpssguser'@'127.0.0.1';"
sudo mysql -h 127.0.0.1 --user=wpssguser --password=wpssgpass <<< "SHOW DATABASES"
php ./wp-cli.phar core download --locale=en_US #--skip-content --force
php ./wp-cli.phar config create --locale=en_US --dbuser=wpssguser --dbpass=wpssgpass --dbname=wpssgdb --dbhost=127.0.0.1
#php ./wp-cli.phar db create # https://github.com/orgs/wp-cli/discussions/6003
php ./wp-cli.phar core install --url=localhost:8080 --title=wpcli --admin_user=wpcli --admin_password=wpcli --admin_email=info@wp-cli.org
php ./wp-cli.phar option set permalink_structure '/%year%-%monthnum%-%day%-%postname%/'
php ./wp-cli.phar theme install --activate https://knd.te-st.ru/kandinsky.zip
- name: Setup postmark
run: |
git clone https://github.com/dirtsimple/postmark
php ./wp-cli.phar package install ./postmark |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP
An attempt to run the WordPress installer without WP-CLI to avoid downloading a few megabytes of
wp-cli.pharin WordPress Playground.