lib/tasks/server.rake in picky-0.0.3 vs lib/tasks/server.rake in picky-0.0.4
- old
+ new
@@ -19,10 +19,10 @@
}
config['development'] = {
:port => 4000,
:daemonize => false
}
- # TODO Move port!
+ # TODO Move port configuration!
port = SEARCH_ENVIRONMENT == 'production' ? 6000 : 4000
`export SEARCH_ENV=#{SEARCH_ENVIRONMENT}; unicorn -p #{config[SEARCH_ENVIRONMENT][:port]} -c #{File.join(SEARCH_ROOT, 'app/unicorn.ru')} #{config[SEARCH_ENVIRONMENT][:daemonize] ? '-D' : ''} #{File.join(SEARCH_ROOT, 'app/application.ru')}`
end
desc "Restart the unicorns!"
task :restart do