Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 749 Bytes

LOCAL_DEPLOYMENT.md

File metadata and controls

27 lines (23 loc) · 749 Bytes

Local deployment for development and/or running tests

  1. Run:
  • cp .docker/supervisor.conf.dist .docker/supervisor.conf
  • cp .dist.env .env

Set environment values inside the .env.
Also configure supervisor's options if you need. By default no services autostart but that's enough to run tests.
Then:

  • docker-compose build
  • docker-compose up -d --remove-orphans
  1. Check:
  • docker ps | grep lib-rest-client-common
    You should see an output similar to this:
    1a7b71f2d8f9 lib-rest-client-common-lib "/usr/bin/supervisord" 21 minutes ago Up 21 minutes rest-client-common
  1. Enter the container:
    docker exec -it lib-rest-client-common bash
    and run inside:
    composer i

  2. Run tests:
    bin/phpunit

  3. Enjoy your work!