This is a basic script that just starts a Sinatra web server on port 4567
To start the web server:
All requests will automatically goto requests.log
Build the server
Monitoring Server Logs for non-2xx response
There is a cron job that runs every 5 mintues to output the number of non-2xx response that was recorded in the server log. The location of this monitoring output:
There is a docker file in this applicaiton which automatically builds it here:
When bringing up a Vagrant box, it will install docker and pull down this image.