From 522fa878c365685207584a7db01198f215850ed8 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 9 Oct 2017 20:51:24 +0200 Subject: [PATCH] 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 2f5f1e71ad..38ebc934f2 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 44896afc7b..f60c1b9f20 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 0000000000..45a9078080 --- /dev/null +++ b/public/500.html @@ -0,0 +1 @@ +assets/500.html \ No newline at end of file