My solution to TandaHQ/work-samples/pings.
-
Stack (
curl -sSL https://get.haskellstack.org/ | sh
) -
Docker (
brew cask install docker
orsudo apt-get install docker-engine
) OR Redis (brew install redis
orsudo apt-get install redis-server
)
docker pull redis
docker run --name PingskellDB -d -p 6379:6379 redis --appendonly yes
OR
redis --appendonly yes
cd Pingskell
stack setup
stack build && stack exec Pingskell
ruby pings.rb
docker kill PingskellDB