This is an example repo to get you started. The main points of interest are
- The
.platformdirectory, and the two files therein -routes.yamlandservices.yaml. These files define project wide webserver configuration and your MySQL database, respectively. - The
.platform.app.yamlfile in the root of this project. This is the application definition file, and sets up all the parameters needed for Moodle to run on Platform.sh - The
public/config.phpfile, where the Platform.shconfig-readerComposer package is autoloaded, and the database connection info is set.
- The entire download was placed into the
publicdirectory, rather than being in the root of the repo. - The
composer.jsonandcomposer.lockfiles were moved up a directory into the root of the repo. This only appears to load behat for dev (by default), but this repo also loads theconfig-readerComposer package referenced above. public/config.phpwas modified in the following places- Lines 3-4 to autoload platformsh-config-reader package
- Lines 72-99 to set DB connection info. You shouldn't need to touch this to get started.
- Lines 129-132 to set the moodledata directory if in a PSH environment.
- Line 134 to set the default homepage. This cured a bizarre redirect loop that nothing else would, short of putting on the deep diving gear. See https://moodle.org/mod/forum/discuss.php?d=227536 for more.