https://github.com/imanilchaudhari/payments-demo
https://github.com/imanilchaudhari/payments-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imanilchaudhari/payments-demo
- Owner: imanilchaudhari
- License: bsd-3-clause
- Created: 2019-02-18T09:21:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T12:25:29.000Z (over 6 years ago)
- Last Synced: 2025-01-13T15:33:09.304Z (5 months ago)
- Language: PHP
- Size: 2.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Docker Yii 2.0 Application
==========================## Introduction
This is a minimal dockerized application template for Yii 2.0 Framework in about 100 lines of code.
## Requirements
- [Docker Toolbox](https://www.docker.com/products/docker-toolbox)
- Docker `>=1.10`
- docker-compose `>=1.7.0`## Setup
Prepare `docker-compose` environment
cp .env-dist .env
and application
cp config/.env-dist config/.env
mkdir public/assetsStart stack
docker-compose up -d
Show containers
docker-compose ps
Run composer installation
docker-compose run --rm php composer install
## Develop
Create bash
docker-compose exec php bash
Run package update in container
$ composer update -v
...
$ yii help
## Test
cd tests
cp .env-dist .envRun tests in codeception (`forrest`) container
d
docker-compose run forrest run> :info: This is equivalent to `codecept run` inside the tester container
### Setup
php yii migrate
php yii migrate --migrationPath=@yii/rbac/migrations/