reduce sandboxing time, set to single threaded as an experiment

This commit is contained in:
Kyle Drake 2016-12-12 06:33:58 +00:00
parent b2377051dc
commit 2b526d85ed
2 changed files with 2 additions and 1 deletions

View file

@ -106,7 +106,7 @@ task :compile_nginx_mapfiles => [:environment] do
end
File.open('./files/maps/sandboxed.txt', 'w') do |file|
usernames = DB["select username from sites where created_at > ? and parent_site_id is null and (plan_type is null or plan_type='free')", 1.week.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"}
usernames = DB["select username from sites where created_at > ? and parent_site_id is null and (plan_type is null or plan_type='free')", 2.days.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"}
end
# Compile letsencrypt ssl keys

View file

@ -16,6 +16,7 @@ def processor_count
end
end
threads 1, 1
environment 'production'
daemonize
pidfile '/var/run/neocities/neocities.pid'