I choose to take recently most popular technology - Docker as our testing environment.
One of benefit features of docker is that by using Dockerfile we have a descriptive and
vcs-capable system environment, and that makes our life easier when we have migration needs.
# It’ll need rubyFROM ruby:latest
MAINTAINER sabonis <sabonis.tw@gmail.com>
# The directory our main program` runs on.VOLUME /server
# Relative path in which command executes.WORKDIR /server
# Install sinatraRUN gem install sinatra
# Defaut host of sinatra app is 127.0.0.1,# that is not OK if your server needs port-forwarding.CMD ruby myapp.rb -o 0.0.0.0
EXPOSE4567