IntelliJ and Tomcat….changed files are not automatically recognized by Tomcat

This cannot be done if you deploy a war with IntelliJ IDEA. However, it can be if you deploy an exploded war. In IDEA: open your Tomcat Run/Debug configuration (Run > Edit Configurations) Go to the “Deployment” tab In the “Deploy at Server Startup” section, remove (if present) the artifact my-webapp-name:war Click the add icon, … Read more

How to automatically update your docker containers, if base-images are updated

We use a script which checks if a running container is started with the latest image. We also use upstart init scripts for starting the docker image. #!/usr/bin/env bash set -e BASE_IMAGE=”registry” REGISTRY=”registry.hub.docker.com” IMAGE=”$REGISTRY/$BASE_IMAGE” CID=$(docker ps | grep $IMAGE | awk ‘{print $1}’) docker pull $IMAGE for im in $CID do LATEST=`docker inspect –format “{{.Id}}” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)