Skip to content

gibbs/app.dangibbs.uk

Repository files navigation

app.dangibbs.uk

Test

Laravel server-side application for dangibbs.uk (static site).

Development

# 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

# Test suite
sail artisan test

# Individual test
sail artisan test --filter MkpasswdTest

Build

Build Container

source .env
docker build --no-cache -t ${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG} -t ${DOCKER_BUILD_NAME}:latest .

Run Container

source .env
docker run -it ${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG}

Debug

docker exec -it $(docker ps | grep '${DOCKER_BUILD_NAME}:${DOCKER_BUILD_TAG}' | awk '{ print $1 }') /bin/bash