Git Product home page Git Product logo

phalcon5-docker's Introduction

MIT License Made in Ukraine Russian Warship Go Fuck Yourself

Setup

$ git clone --branch php81 https://github.com/someson/phalcon5-docker.git .
$ docker-compose up -d --build
  • add to your [...]/etc/hosts
127.0.0.1 phalcon5.test
$ docker-compose exec app-service composer install

CLI

Run console commands

$ php ./scripts/cli.php [handler] [action] [param1] [param2] ... [paramN] -v -r -s

or for docker

$ docker-compose exec [service-name] php ./scripts/cli.php [handler] [action] [param1] [param2] ... [paramN] -v -r -s

Example:

$ docker-compose exec app-service php ./scripts/cli.php main main -v -r -s
  • -s = single instance allowed
  • -v = verbose info
  • -r = recording the process into several resources of your choice (MySQL, Logs, ...)

CLI Debugging (xdebug 3.x) in PhpStorm under docker

2 aspects to realize:

  1. -dxdebug.mode=debug -dxdebug.client_host=host.docker.internal -dxdebug.client_port=9003 -dxdebug.start_with_request=yes has to be in called console command
  2. docker-compose.yml has to have ENV variable in PHP container: PHP_IDE_CONFIG=serverName=phalcon5.test, where phalcon5.test is your Settings > PHP > Servers > Name value.

where docker host for Windows or Linux:

host.docker.internal

Result:

$ docker-compose exec app-service php -dxdebug.mode=debug -dxdebug.client_host=host.docker.internal -dxdebug.client_port=9003 -dxdebug.start_with_request=yes ./scripts/cli.php main main -v -s -r

with started listenings for PHP debug connections, certainly.

Tests

$ docker-compose exec app-service vendor/bin/codecept run

phalcon5-docker's People

Contributors

someson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.