Laravel server-side application for dangibbs.uk (static site).
# Add to hosts file
echo "127.0.0.1 app.dangibbs.test" | sudo tee -a /etc/hosts >/dev/null
# Install packages
composer install
# Run container via sail
sail up -d
# Test suite
sail artisan test
# Individual test
sail artisan test --filter MkpasswdTest
source .env
docker build --no-cache -t ${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG} -t ${DOCKER_BUILD_NAME}:latest .
source .env
docker run -it ${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG}
docker exec -it $(docker ps | grep '${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG}' | awk '{ print $1 }') /bin/bash