8000 GitHub - pp-develop/docker-laravel
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pp-develop/docker-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-laravel

Usage

  1. create and start containers
    $ docker-compose up -d
    
  2. create a new Laravel project
    $ docker exec -it docker_laravel_php bash
    $ composer create-project laravel/laravel .
    
  3. start local development server
    $ php artisan serve --host=0.0.0.0 --port=80
    
    accsess local development server http://localhost:80

Debug

xdebug setting for VSCode

  1. install PHP Debug

  2. setting .vscode/launch.json

    /.vscode/launch.json

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Listen for Xdebug",
                "type": "php",
                "request": "launch",
                "port": 9003,
                "pathMappings": {
                    "/var/www/html/": "${workspaceRoot}/src/"
                }
            },
        ]
    }
    

Referens
launch.json attribute
https://code.visualstudio.com/docs/editor/debugging#_launchjson-attributes
about pathMappings
https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug

/php.ini
https://xdebug.org/docs/all_settings

Usage

  1. Ctrl+Shift+D
  2. ▶︎(RUN) 「Listen for Xdebug」 selection
  3. Set a breakpoint on any line
  4. F5 or ▶︎ click to debag start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0