Note
This repository is pinned to specific versions and is intentionally not updated. It serves as a reference for deploying this particular stack on Clever Cloud. For a more recent example, check the examples catalog.
This repository is a fork from Moodle.
Moodle https://moodle.org is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments. Clever Cloud is a rock solid IT automation platform, that allows developpers to deploys apps fast and secure.
You can download Moodle https://download.moodle.org and use this repo as a model, or clone it and deploy it directly on Clever Cloud.
Clone this repository, and on Clever Cloud:
- Create a new PHP application
- Choose Git deployment
- Add a MySQL add-on
- Add the following environment variables
CC_PHP_VERSION="8"
MAX_INPUT_VARS="5000"
URL="<your-url"This will allow you to store your files outside of your application and is required by Moodle to run.
- Create an FS Bucket add-on
- Link it to your PHP application
- In your FS Bucket dashboard, find the path variable (it should look like this:
CC_FS_BUCKET=/some/empty/folder:bucket-<bucket_id>) - Add this variable to your PHP application, replace
/some/empty/folderby/moodledata. - Update changes
Moodle needs an URL declared in variables to work properly. You can set it up in Domains names, from your PHP application menu. If you don't have a domain name yet, you can use a cleverapp.io subdomain provided by Clever Cloud for test purposes.
Don't forget to update URL="<your-url" if you haven't yet.
Time to push your code!
- Get the remote in your application menu > Information
- Add it to Git:
git remote add clever <clever-remote-url> - Push your code:
git push clever -u master
💡 If you get a reference error when pushing, try this: git push clever main:master.
Note: This repository is already configured to run /admin/cli/cron.php every minute as a CRON job.
See Moodle installation documentation for further help and development configuration.
