mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
sidekiq for processing
This commit is contained in:
parent
44b61170e5
commit
91b4d8aa14
6 changed files with 22 additions and 26 deletions
4
app.rb
4
app.rb
|
@ -234,7 +234,7 @@ post '/site_files/upload' do
|
|||
FileUtils.mv params[:newfile][:tempfile].path, dest_path
|
||||
File.chmod(0640, dest_path) if self.class.production?
|
||||
|
||||
Backburner.enqueue(ScreenshotJob, current_site.username) if sanitized_filename =~ /index\.html/
|
||||
ScreenshotWorker.perform_async(current_site.username) if sanitized_filename =~ /index\.html/
|
||||
|
||||
current_site.update updated_at: Time.now
|
||||
|
||||
|
@ -301,7 +301,7 @@ post '/site_files/save/:filename' do |filename|
|
|||
FileUtils.mv tmpfile.path, dest_path
|
||||
File.chmod(0640, dest_path) if self.class.production?
|
||||
|
||||
Backburner.enqueue(ScreenshotJob, current_site.username) if sanitized_filename =~ /index\.html/
|
||||
ScreenshotWorker.perform_async(current_site.username) if sanitized_filename =~ /index\.html/
|
||||
|
||||
current_site.update updated_at: Time.now
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue