-
Notifications
You must be signed in to change notification settings - Fork 33
Home
Mark Metcalfe edited this page Oct 30, 2021
·
38 revisions
Note: For Ubuntu/Debian users, you can use this easy script to install everything in one go.
- Windows Terminal (Optional, but recommended)
- Ubuntu for WSL2
- GWSL (Optional, but recommended for running GUI apps such as PHPStorm)
- Docker Engine and Docker Compose (installed within Ubuntu for WSL2)
Note: On Windows, these next steps will need to be done within your WSL2 Ubuntu terminal/filesystem
- Create a directory that you can clone your Totara sites into (
mkdir ~/totara-sites
) - Clone the Totara source code (For Totara employees, see our BitBucket repository) into your site folder and give it a name (e.g.
cd ~/totara-sites && git clone REPO_URL totara13
) - Copy the
.env.dist
file to.env
(cp .env.dist .env
) - Within the copied
.env
, setLOCAL_SRC
to be the full path to your local Totara site folder (e.g.LOCAL_SRC=/home/USERNAME/totara-sites
) - Copy the
config.php
file from this repo into your Totara site repo folder (or alternatively create aconfig.php
based uponconfig.example.php
/config.php.dist
in the site root) - Add the
bin/
folder to your paths (e.g.PATH=$PATH:/path/to/docker-dev/bin
) -
Windows Only: In an elevated Windows command prompt, run
icacls C:\Windows\System32\drivers\etc\hosts /grant Users:W
(required for the next step) - Run the
tools/set_hosts.sh
script to add all the required host entries to your/etc/hosts
file - Configure your terminal to use an extended font pack (full font list available here)
See the Usage page for usage documentation.
Copyright (c) 2023 Totara Learning Solutions Limited
- Node.js and Grunt
- PHPUnit
- Behat
- Cron
- Machine Learning
- Mailcatcher (for viewing emails)
- Shell Customisations
- Ngrok (for making your site publicly accessible)
-
PHPStorm Integration
- Performance improvements
- Automated testing integration
- XDebug setup
- Database tools