Make screenshots for different device viewports and see them on one page with the server.
The example configs tests use my frontend-development sample application where a user can create an account, confirm, login, modify and delete the account.
Run a container from the image uwegerdes/gulp-frontend
and connect to your environment (with the localhost ports of gulp livereload on 5381, responsive-check on 5382 and a running nginx docker container, the hostname dockerhost
is used in test configs).
This command removes the container after end - useful if your nginx ip address changes.
$ docker run -it --rm \
--name responsive-check \
-v $(pwd):/usr/src/app \
-p 5381:5381 \
-p 5382:5382 \
--network="$(docker inspect --format='{{.HostConfig.NetworkMode}}' nginx)" \
--add-host dockerhost:$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' nginx) \
uwegerdes/gulp-frontend
Open http://localhost:5382/
in your favourite browser.
Stop the container with CTRL-C and exit the container with CTRL-D.