This development setup has only been tested on MacOS.
- Create a new project directory.
- clone fspdev into the .ddev directory
git clone [email protected]:cdracars/wardendev.git .ddev
- run
ddev rm --unlist
(only if you had previously installed this and need to move it) - run
ddev start
- After ddev has started run
ddev exec composer install
- Start working you slacker!
Note: If you have a password on your ssh keys you will need to do the below.
Add your SSH private key to the ssh-agent and store your passphrase in the keychain. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_rsa in the command with the name of your private key file.
$ ssh-add -K ~/.ssh/id_rsa
Also it may be needed to uncheck "Securely store Docker logins in macOS keychain" in Docker preferences.
- You can access the MongoDB Express web viewer by going to warden.ddev.site:8081
- The mongo javascript cli is installed on the mongo db container.
- add warden settings to settings.php
$config['warden.settings']['warden_server_host_path'] = 'https://ddev-warden-web';
$config['warden.settings']['warden_allow_requests'] = true;
$config['warden.settings']['warden_public_allow_ips'] = 'SITE_IP_HERE';
- Add site from the drupal side (SITEURL/admin/config/system/warden)
- After adding site to warden run
ddev share
and copy the ngrok url - Go to warden site and edit site to use the ngrok URL instead of the imported one.
Note:
Every ddev share
will change the ngrok URL.