#1 - readme
This commit is contained in:
parent
2e13df23fb
commit
1f456f2453
33
readme.md
33
readme.md
@ -1,6 +1,8 @@
|
|||||||
|

|
||||||
|
|
||||||
# Toby
|
# Toby
|
||||||
|
|
||||||
HR software you love to hate
|
> HR software you love to hate
|
||||||
|
|
||||||
## Local setup
|
## Local setup
|
||||||
|
|
||||||
@ -39,19 +41,22 @@ HR software you love to hate
|
|||||||
|
|
||||||
dcr node npm run dev
|
dcr node npm run dev
|
||||||
|
|
||||||
## Available containers (local)
|
### Available containers (local)
|
||||||
|
|
||||||
|
- **web** - nginx HTTP server
|
||||||
- **php** - php and composer stuff
|
- **php** - php and composer stuff
|
||||||
- **node** - npm stuff
|
- **node** - npm stuff
|
||||||
- **mysql** - database for local development
|
- **mysql** - database for local development
|
||||||
- **mailhog** - for emails preview
|
- **mailhog** - for emails preview
|
||||||
|
|
||||||
## Running tests
|
### Running tests
|
||||||
|
|
||||||
If xDebug is installed, set environment variable **XDEBUG_MODE=off** to improve performance
|
If xDebug is installed, set environment variable **XDEBUG_MODE=off** to improve performance
|
||||||
|
|
||||||
dcr -e XDEBUG_MODE=off php php artisan test
|
dcr -e XDEBUG_MODE=off php php artisan test
|
||||||
|
|
||||||
|
### Code style check
|
||||||
|
|
||||||
## Code style check
|
|
||||||
dcr php php vendor/bin/ecs check
|
dcr php php vendor/bin/ecs check
|
||||||
dcr php composer ecs
|
dcr php composer ecs
|
||||||
dcr php php vendor/bin/ecs check --fix
|
dcr php php vendor/bin/ecs check --fix
|
||||||
@ -59,13 +64,14 @@ If xDebug is installed, set environment variable **XDEBUG_MODE=off** to improve
|
|||||||
dcr node npm run lint
|
dcr node npm run lint
|
||||||
dcr node rpm run lintf
|
dcr node rpm run lintf
|
||||||
|
|
||||||
## xDebug
|
### xDebug
|
||||||
|
|
||||||
To use xDebug you need to set `DOCKER_INSTALL_XDEBUG` to `true` in `.env` file.\
|
* To use xDebug you need to set `DOCKER_INSTALL_XDEBUG` to `true` in `.env` file.
|
||||||
Then rebuild php container `docker-compose up --build -d php`.\
|
* Then rebuild php container `docker-compose up --build -d php`.
|
||||||
You can also set up xDebug params (see docs https://xdebug.org/docs/all_settings) in `docker/dev/php/php.ini` file:
|
* You can also set up xDebug params (see docs https://xdebug.org/docs/all_settings) in `docker/dev/php/php.ini` file:
|
||||||
|
|
||||||
Default values for xDebug:
|
Default values for xDebug:
|
||||||
|
|
||||||
```
|
```
|
||||||
xdebug.client_host=host.docker.internal
|
xdebug.client_host=host.docker.internal
|
||||||
xdebug.client_port=9003
|
xdebug.client_port=9003
|
||||||
@ -74,16 +80,19 @@ xdebug.start_with_request=yes
|
|||||||
xdebug.log_level=0
|
xdebug.log_level=0
|
||||||
```
|
```
|
||||||
|
|
||||||
### Disable xDebug
|
#### Disable xDebug
|
||||||
it is possible to disable the Xdebug completely by setting the option **xdebug.mode** to **off**,
|
|
||||||
or by setting the environment variable **XDEBUG_MODE=off**\
|
* It is possible to disable the Xdebug completely by setting the option **xdebug.mode** to **off**, or by setting the environment variable **XDEBUG_MODE=off**.
|
||||||
See docs (https://xdebug.org/docs/all_settings#mode)
|
* See docs: (https://xdebug.org/docs/all_settings#mode)
|
||||||
|
|
||||||
CLI:
|
CLI:
|
||||||
|
|
||||||
```
|
```
|
||||||
XDEBUG_MODE=off php artisan test
|
XDEBUG_MODE=off php artisan test
|
||||||
```
|
```
|
||||||
|
|
||||||
Docker container:
|
Docker container:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker-compose run --rm -e XDEBUG_MODE=off php php artisan test
|
docker-compose run --rm -e XDEBUG_MODE=off php php artisan test
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user