Giter Site home page Giter Site logo

docker-app-11-laravel's Introduction

"Docker for PHP Developers" by Paul Redmond.
Trying to solve Xdebug and other issues.

Steps to build

  1. Clone
    git clone https://github.com/avrahamm/docker-app-11-laravel.git xdebug
    cd xdebug

  2. Add .env from .env.example and .docker.env from docker.env.example files from respective example files
    Windows!
    Open docker/start.sh and assure line endings LF (linux style) and not CLRF(wibdows style),
    as docker container runs linux.
    @link: https://stackoverflow.com/questions/70380310/docker-env-bash-r-no-such-file-or-directory

  3. Build and run utility temporary container to composer install
    docker-compose build composer
    docker-compose run --rm composer install

  4. Build and run app container
    docker-compose build app
    docker-compose run app php artisan key:generate
    docker-compose up

  5. Open http://localhost:8080 in Firefox - I ran on ubuntu 20.

  6. https://github.com/avrahamm/docker-app-11-laravel/blob/master/xdebug-info-1.png on my side

  7. Try to turn on Xdebug firefox extension

  8. Turn on PHPStorm "Listen to PHP debug connetions"/green phone and "break on first line", or add breakpoints.

  9. Get into container bash
    docker-compose exec app bash

  10. To see log
    cat /usr/local/etc/php/conf.d/xdebug.ini

  11. To see xdebug.ini
    tail /tmp/xdebug.log

  12. take a look at
    https://www.youtube.com/watch?v=4opFac50Vwo&lc=UgzO6tuJmbDjA6UUoHJ4AaABAg.9ZDeShZELEl9a2cVgU-UEW

docker-app-11-laravel's People

Contributors

avrahamm avatar scialom avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.