Skip to content

Latest commit

 

History

History
60 lines (52 loc) · 1.07 KB

DEVELOPMENT.md

File metadata and controls

60 lines (52 loc) · 1.07 KB

Development Guide

Testing

First, please run this command to build docker image.

make docker-build

Then, install all dependencies

make composer-install

Last, run the tests

make composer-test

Testing on PHPStorm

  • Open Settings dialog
  • Open ... on PHP > CLI Interpreter
  • Add new interpreter (From docker ...)
  • Choose Docker with image l42x:latest
  • Back to Settings
  • Open ... on PHP > Docker Container
  • On Volume Bindings, set host to current path and /usr/src/myapp to container path

Laravel App Setup

Change this value on your composer.json laravel app

{
  "requires": {
    "laravel/framework": "dev-branch-name as 4.2.x-dev"
  },
  "repositories": [
    {
      "type": "path",
      "url": "/var/www/laravel42x",
      "options": {
        "symlink": false
      }
    }
  ]
}

Then, run this command:

composer update laravel/framework --prefer-source -W

Add this volume binding to docker-compose.yml

version: '3.9'
services:
  web:
    volumes:
      - "/path/to/laravel42x:/var/www/laravel42x"