Drupal camp delhi repo is build on top of drupal cms.
The following tools are required for setting up the site.
Note: Please make sure you have all above tools in-place before you start with next tasks.
- Create a fork of the repository.
- Clone the project.
- Setup a SSH key that can be used for Github
$ git clone <your_fork>
- Add the upstream URL.
git remote add upstream git@github.com:guptahemant/dcd-cms.git
- Docker
- Docker Compose
- DDEV
- Make sure your ssh pub keys are added to dev server for db sync.
Use drush aliases to specifically target a local site. List of all aliases can be found by running:
ddev drush sa
Lagoon aliases
ddev drush la
For finding out the URL of a site use the information in drush alias.
Current local aliases
- ddev.local - Use to target local site.
Lagoon aliases
- lagoon.dcd-develop - Dev env
- lagoon.dcd-main - Prod env
ddev start- Require all packages
ddev composer install - Create a .env file
cp .env.example .env
ddev drush si --existing-config -yddev drush cim -y
- You need to have an account in lagoon, and should have added your ssh key.
- Authorize ddev to use your keys
ddev auth ssh - Pulling the dev db and files using ddev
ddev pull lagoon
Manually pull and import the DB
- Take the db dump from the remote site:
ddev drush @alias sql-dump > db_dump.sql - Import db dump to a local site:
ddev drush @alias sql-cli < db_dump.sql - To login use
ddev drush @alias uli
- To be added
Active development branch is develop
git checkout developgit pull upstream develop
ddev composer installddev drush updb -yddev drush cim -y- FE updates: TBD
git chechout -b feature/new-branch- Perform work on local.
- Export any config changes.
- Make sure while exporting the config changes to properly use the config splits.
- Use github issues to report any issues you encounter.
- Working with lagoon: https://github.com/lagoon-examples
- Go to https://github.com/users/guptahemant/projects/3
- Pickup issues from ready / backlog queue
- Add a comment on an issue, if you are workin upon it.
- Once work is completed, Create the PR and make sure to mention the issue id in PR.
- Post the PR link in slack channel for review.