An open API service indexing awesome lists of open source software.

https://github.com/bigdropinc/yii2-docker-template

Yii2 dev-ready project template with docker by BigDrop
https://github.com/bigdropinc/yii2-docker-template

docker docker-compose php php7 project-template yii2

Last synced: about 2 months ago
JSON representation

Yii2 dev-ready project template with docker by BigDrop

Awesome Lists containing this project

README

          

#### RUN `./install-once.sh` !!!
# example_project

## Deploy

`./deploy [-e local|dev|prod|test]`

Environment is local by default.

Your project will be available at [http://localhost:12421](http://localhost:12421)

## Run tests

`./tests [dev-mode]`
"dev-mode" recreates test containers and drops it after execution.

## Generate docs

After each test execution api docs will be created. How to: [http://apidocjs.com](http://apidocjs.com)

## Configuring XDebug for PHPStorm

- Open `Settings -> Languages & Frameworks -> PHP -> Servers`
- Click `+`
- Enter params:
- Name: nginx
- Host: nginx
- Port: 80
- Debugger: XDebug
- Use path mapping: yes
- Set path mapping `@project/app` to `/www`, where `@project` - your project directory
- Save
- Click "Start listening for PHP Debug connections"
- Enjoy!

#### You able to debug tests too.