lando / wordpress

The Official WordPress Lando Plugin
https://docs.lando.dev/wordpress/
GNU General Public License v3.0
13 stars 6 forks source link

automate Download WordPress and setup wp-config.php #5

Closed helgatheviking closed 2 years ago

helgatheviking commented 2 years ago

Could the recipe download WordPress and set up the wp-config.php automatically on lando start to make the spinup process even simplier for new users?

gitressa commented 2 years ago

It doesn't automate the set up, but the WordPress Getting Started page includes commands for quick creation of config file and installation.

To run all 33 lines in one swoop, wrap them in parentheses (which runs them in a sub-shell) and paste them into the terminal. Without parentheses Docker can get confused, and jumble up the order of execution:

(
# Create folder and enter it
mkdir wordpress && cd wordpress

# Initialize a wordpress recipe using the latest WordPress version
lando init \
  --source remote \

[...]

  --admin_password=password \
  --admin_email=admin@my-first-wordpress-app.lndo.site \
  --path=wordpress
)
labboy0276 commented 2 years ago

It would be difficult to automate the setup of wp-config.php as WordPress now has numerous different ways to use WordPress (i.e vanilla, BedRock, composer only, various hosting provider setups, etc). So with that, It is really up to the user due to this complexity.