Permalink
Browse files

Adding environment option, version 0.1.3

  • Loading branch information...
1 parent 2d7055c commit c2309f26ed6c083dfc9f85e6edf7db721e2d4b5b @winton committed Oct 20, 2010
Showing with 4 additions and 1 deletion.
  1. +1 −1 require.rb
  2. +3 −0 templates/bash.erb
View
@@ -13,7 +13,7 @@
name 'with_pid'
homepage "http://github.com/winton/#{name}"
summary "The simple way to create and monitor a Ruby daemon"
- version '0.1.2'
+ version '0.1.3'
end
rakefile do
View
@@ -5,6 +5,9 @@ CURDIR=`pwd`
COMMAND="<%= options[:command] %>"
PID_FILE="<%= options[:pid] %>"
+export RAILS_ENV=<%= options[:environment] %>
+export RACK_ENV=<%= options[:environment] %>
+
mkdir -p <%= options[:pid_dir] %>
case "<%= options[:action] %>" in

0 comments on commit c2309f2

Please sign in to comment.