sage-installer
sage-installer copied to clipboard
postCreateProject: Show warning/more info about local dev
Local development URL of WP site [http://example.dev]:
>
Path to theme directory (e.g., /wp-content/themes/sage) [/app/themes/sage]:
>
at this point we need to iterate the importance of these values — if entered incorrectly then local dev will be broken
this could just be a link to something in the sage 9 docs
Better would be that the installer should provide sane defaults along with messaging.
-
It should try to determine the local site url using wp-cli if possible. This should be able to be determined fairly easily using
wp option get siteurl
or other means. -
The path to the theme directory should already be available, as the composer script should be running in that path (as per documentation at https://roots.io/sage/docs/theme-installation/), and the user is already asked for the theme directory name when they run the
composer create-project roots/sage your-theme-name
script. A simplepwd
combined with that name would set a sane default, instead of/app/themes/sage
.
Will see if I can poke around in code to make this happen, and submit a pull request.