Permalink
Browse files

Merge pull request #92 from richo/features/sane-environment

Use inbuilts for enivonment manipulation
  • Loading branch information...
2 parents 916fb87 + 2c50574 commit 2dc8eb623734cfbdf027e262e97bcd40df29fcdd @floere committed Dec 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 server/lib/tasks/server.rake
@@ -16,7 +16,8 @@ namespace :server do
task :start => :framework do
chdir_to_root
daemonize = PICKY_ENVIRONMENT == 'production' ? '-D' : ''
- command = "export PICKY_ENV=#{PICKY_ENVIRONMENT}; unicorn -c unicorn.rb #{daemonize}".strip
+ ENV['PICKY_ENV'] = PICKY_ENVIRONMENT
+ command = "unicorn -c unicorn.rb #{daemonize}".strip
puts "Running \`#{command}\`."
exec command
end

0 comments on commit 2dc8eb6

Please sign in to comment.