Skip to content

Commit

Permalink
Issue in example run script (#40)
Browse files Browse the repository at this point in the history
* Typo in example run script

* Typo in example run script
  • Loading branch information
cheynewallace authored and grobie committed Feb 14, 2017
1 parent 5e16541 commit cf659a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rack/run
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ URL=http://127.0.0.1:${PORT}/

log "starting example server"
bundle install --quiet
bundle exec unicorn -p ${PORT} -c unicorn.conf &>> /dev/null &
bundle exec unicorn -p ${PORT} -c unicorn.conf &> /dev/null &

# wait until unicorn is available
sleep 1

log "sending requests for 5 seconds"
printf "GET ${URL}\nPOST ${URL}\nDELETE ${URL}" | vegeta attack -duration 5s &>> /dev/null
printf "GET ${URL}\nPOST ${URL}\nDELETE ${URL}" | vegeta attack -duration 5s &> /dev/null

log "printing /metrics"
curl -s "${URL}metrics"

0 comments on commit cf659a1

Please sign in to comment.