mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
reduce sandboxing time, set to single threaded as an experiment
This commit is contained in:
parent
b2377051dc
commit
2b526d85ed
2 changed files with 2 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -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
|
||||
|
|
|
@ -16,6 +16,7 @@ def processor_count
|
|||
end
|
||||
end
|
||||
|
||||
threads 1, 1
|
||||
environment 'production'
|
||||
daemonize
|
||||
pidfile '/var/run/neocities/neocities.pid'
|
||||
|
|
Loading…
Add table
Reference in a new issue