no fallar si el sitio todavía no se generó
This commit is contained in:
parent
77c16071bd
commit
475c393f46
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Gestiona las versiones privadas de los sitios. Solo se puede acceder
|
||||
# con una cuenta
|
||||
class PrivateController < ApplicationController
|
||||
|
@ -18,7 +20,7 @@ class PrivateController < ApplicationController
|
|||
return
|
||||
end
|
||||
|
||||
if deploy_private
|
||||
if deploy_private && File.exist?(path)
|
||||
send_file path, disposition: 'inline'
|
||||
else
|
||||
head :not_found
|
||||
|
|
Loading…
Reference in a new issue