Example implementation of automatically updating contacts on new message events.
- Clone project
a.
git clone https://github.com/acapps/update-contact.git
- Navigate to directory
a.
cd update-contact
- Run Composer Update to download necessary components.
a.
composer update
For testing I've used webdeveops' nginx-php
container.
WebDevOps PHP-Nginx
To utilize PHP 5.6, I've used: WebDevOps PHP-Nginx (PHP 5.6)
Start up the container:
Navigate to the update-contact
directory
Run the following command to start the Docker Container.
docker run -d -v $PWD:/app -p 8010:80 webdevops/php-nginx:ubuntu-15:10
This puts the container's root in the current directory, giving it access to vendor
and src
.
However, we only want src
to be the Web Root.
We therefore will modify the Dockerfile
to:
ENV WEB_DOCUMENT_ROOT /app/src