about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-10-09 20:51:24 +0200
committerGitHub <noreply@github.com>2017-10-09 20:51:24 +0200
commit92e7815d1dce96ac5e01b10bcfa110aa96487c35 (patch)
tree4d026d16798578ec2d79ef960d1564f126f63d4d
parent9d97054fe6ad72da1ef70b0a027bb32cb1fbdfb4 (diff)
Fix #5274 - Create symlink from public/500.html to public/assets/500.html (#5288)
-rw-r--r--.gitignore1
-rw-r--r--lib/tasks/assets.rake2
l---------public/500.html1
3 files changed, 2 insertions, 2 deletions
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