lib/tasks/server.rake in picky-1.0.0 vs lib/tasks/server.rake in picky-1.1.0

- old
+ new

@@ -12,20 +12,18 @@ end # desc "Start the unicorns. (Wehee!)" task :start => :framework do chdir_to_root - # Rake::Task[:"solr:start"].invoke # TODO Move to better place. daemonize = PICKY_ENVIRONMENT == 'production' ? '-D' : '' command = "export PICKY_ENV=#{PICKY_ENVIRONMENT}; unicorn -c unicorn.ru #{daemonize}".strip puts "Running \`#{command}\`." exec command end # desc "Stop the unicorns. (Blam!)" task :stop => :framework do `kill -QUIT #{current_pid}` if current_pid - # Rake::Task[:"solr:stop"].invoke # TODO Move to better place. end # desc "Restart the unicorns." task :restart do Rake::Task[:"server:stop"].invoke