Closed helgatheviking closed 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
)
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.
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?