Open retlehs opened 6 years ago
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 simple pwd
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.
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