Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

Commit

Permalink
Daemonize only during specs
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebarrie committed Jun 26, 2014
1 parent aca81bc commit edeb51f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/bin/redis
Expand Up @@ -4,8 +4,9 @@ require 'dotenv'
Dotenv.load

puts "Starting Redis server on 127.0.0.1:#{ENV['REDIS_PORT']}"
daemonize = $stdin.tty? ? 'no' : 'yes'
Process.exec 'redis-server ' \
'--daemonize yes ' \
"--daemonize #{daemonize} "\
'--pidfile redis.pid ' \
'--port $REDIS_PORT ' \
'--bind 127.0.0.1 ' \
Expand Down

0 comments on commit edeb51f

Please sign in to comment.