Permalink
Browse files

Use inbuilts for environment manipulation

  • Loading branch information...
1 parent 97bef85 commit 2c505748c70f21cbbd5206f6795be6a4be206a7f @richo richo 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 2c50574

Please sign in to comment.