Closed narration-sd closed 2 years ago
Added note: it's likely quite useful to add to primary doc how the file and url paths need to be set, especially with regard to Sites -- or even primary Site.
Points to be expressed -- I know we've hit some of these before, but to draw together:
Ok, notes at least on a Sunday morning -- definitely can use careful editing and otherwise knocking into shape for doc...cases, though, taken from experiences, and the time taken to sort them out...
I've decided to close this, in part because the Craft 2.x and 3.x docs have been frozen (aside from the occasional backwards-compatible edit), and in part because I found a spot to make mention of the primary asks (regarding phpdotenv
and entry scripts) in the 3.x -> 4.x upgrade guide.
If you would like to submit the remainder of the requests individually, please do! This is all is a work-in-progress—and we’re aware of a few places where Assets are underserved by the documentation.
Doc is missing in the section for these conversions,, but it's easy to provide, thus allowing all Craft 3 sites to take advantage of the better security possible, and be consistent when addressed in future.
Think what would be useful in the initial Updating Craft CMS section of upgrade.md is:
insert an step after 4) and similar to it, with this instruction. At present it will result in a tag of ^2.40, which should provide for future.
compoaer require vlucas/phpdotenv
In the step which now becomes 6), replace the index.php code substitution with something like this. Note that the phpdotenv call has added protection, in case the composer step hadn't been done or succeeded, or was lost.
You could quite usefully add a further paragraph in this area, quite possibly a new step (now) 9) and after 'success and delete app', explaining how the converted site will continue to use the present db.php and general.php, while possibly needing some modifications, leading to the following Configuration section
similarly, it could be quite informative to flesh out the rather misssable Asset Volume Settings section (bigger heading type there?) with a note that you can use .env entries to fill in the per-deployment-site differing values for ASSET_BASE_PATH and ASSET_BASE_URL in volumes.php.
last point is that problems with old Redactor configs could usefully be a bit better explained in the Redactor configs section. I would follow your specifics with a short paragraph saying 1) in fact old Redator configs often don't follow these rules, by not quoting all values, and by using the wrong quote character otherwise, so you will have to edit them if Craft shows an on Rich Text fields, and 2) that
http://jsonlint.com/
can be very useful in assuring you've made all the corrections.well, one more. It's likely to be helpful to add a now 10) item to the initial Updating Craft CMS section, suggesting to Clear Caches all nder the new Utilities menu, before beginning to try out the converted site. I've had some very misleading problems occur on conversion, until doing this, something easily overlooked but obviously of need for sites that have run before, when you think about it.