This project offers citizens a way to apply for different city grants for their associations or themselves...
| Env | Branch | Url |
|---|---|---|
| local | * | https://hel-fi-drupal-grant-applications.docker.so/ |
| development | * | https://avustukset.dev.hel.ninja |
| testing | develop | https://avustukset.test.hel.ninja |
| staging | release/* | https://avustukset.stage.hel.ninja |
| production | main | https://avustukset.hel.fi (https://nginx-avustusasiointi-prod.apps.platta.hel.fi/ before release) |
You need to have these applications installed to operate on all environments:
- Docker
- Stonehenge
- For the new person: Your SSH public key needs to be added to servers
For the first time (new project):
$ make new
And following times to create and start the environment:
$ make fresh
NOTE: Change these according of the state of your project.
This will log you inside the app container:
$ make shell
To enable xdebug, run export XDEBUG_ENABLE=true before (re)starting your project. More info in docker-composer.yml
Works is done & issues tracked on our Jira board.
Production monitoring dashboard.
Drupal uses phpunit library for tests and it is installed via composer as a development dependency. Tests are configured using phpunit.xml file in module root. Drupal documentation about tests an be found here
There are three kind of tests. Unit tests are for testing code without loading Drupal. Kernel tests are run always with Drupal core and during the test setup phase modules can be installed and configurations loaded. These can be used to test features that tied to Drupal fore features like services and events. Functional tests are run with whole Drupal and they can be used to test any Drupal functionality.
Each kind of test case has base class that are extended to create tests.
Run tests related to AtvSchema: vendor/bin/phpunit -c public/core public/modules/custom/grants_metadata
Can be found from here.