- php 59.9%
- Twig 16.5%
- SCSS 11.9%
- JavaScript 10.3%
- CSS 1.2%
- Other 0.1%
|
|
||
|---|---|---|
| ADRs | ||
| backups | ||
| docker | ||
| drupal | ||
| scripts | ||
| styleguide | ||
| .editorconfig | ||
| .env | ||
| .gitattributes | ||
| .gitignore | ||
| bitbucket-pipelines.yml | ||
| CLAUDE.md | ||
| compose.yml | ||
| dimandocs.json | ||
| README.md | ||
| Taskfile.yml | ||
General information
For running new project for local development, you need to do the following steps:
- Have or create docker network
docker network create web - Have already started global traefik (you can use configured example https://bitbucket.org/dimando/ci_traefik/src)
- Run
task up - Run
task install
Desired infrastructure state:
- Have a separate pipeline for the "master" branch on the production server.
- For all other branch names (including stage, dev, etc.), use the default pipeline with auto-creating environments according to the branch name on the dev-server.
Taskfile:
We use Task to run commands. You can find the task file in the root of the project.
-
If you use zsh : https://github.com/sawadashota/go-task-completions.
-
For PHPStorm : https://plugins.jetbrains.com/plugin/17058-taskfile.
-
Use
--forceflag to force run task even if it's skipped by preconditions (example: Task "install" is up to date):task install --force.
During CI-CD process, we also use tha global Taskfile located in the /dimando/ folder. Sources of the global Taskfile: https://bitbucket.org/dimando/taskfile/.
For getting help on the available commands, run task --list. Feel free to adopt it for particular needs.
Dev environments setup steps:
- Go to /admin/access-tokens in Bitbucket admin area for the project and add access token. The name could be anything. Then go to /admin/pipelines/repository-variables in Bitbucket admin area and add BITBUCKET_TOKEN variable with created token value.
- Enable pipelines /admin/addon/admin/pipelines/settings in bitbucket admin area.
- Make sure that you have configured runner for your new environment server (https://bitbucket.org/dimando/ansible/src/master/readme.md)
For MacOS users:
During task install you'll get darwin-specific variant of composer.override.yml file
and .env.local.overrides file. Check /scripts/Taskfiles/Helpers for more info.