From 92e7815d1dce96ac5e01b10bcfa110aa96487c35 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Mon, 9 Oct 2017 20:51:24 +0200
Subject: Fix #5274 - Create symlink from public/500.html to
 public/assets/500.html (#5288)

---
 .gitignore            | 1 -
 lib/tasks/assets.rake | 2 +-
 public/500.html       | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)
 create mode 120000 public/500.html

diff --git a/.gitignore b/.gitignore
index 2f5f1e71a..38ebc934f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,7 +21,6 @@ public/system
 public/assets
 public/packs
 public/packs-test
-public/500.html
 .env
 .env.production
 node_modules/
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 44896afc7..f60c1b9f2 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -10,7 +10,7 @@ end
 namespace :assets do
   desc 'Generate static pages'
   task :generate_static_pages do
-    render_static_page 'errors/500', layout: 'error', dest: Rails.root.join('public', '500.html')
+    render_static_page 'errors/500', layout: 'error', dest: Rails.root.join('public', 'assets', '500.html')
   end
 end
 
diff --git a/public/500.html b/public/500.html
new file mode 120000
index 000000000..45a907808
--- /dev/null
+++ b/public/500.html
@@ -0,0 +1 @@
+assets/500.html
\ No newline at end of file
-- 
cgit