]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #5274 - Create symlink from public/500.html to public/assets/500.html (#5288)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 9 Oct 2017 18:51:24 +0000 (20:51 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2017 18:51:24 +0000 (20:51 +0200)
.gitignore
lib/tasks/assets.rake
public/500.html [new symlink]

index 2f5f1e71ad8d561d4bd60fdae67a7bb77dd80233..38ebc934f28eceec022667a1c5aa6fc0b126d858 100644 (file)
@@ -21,7 +21,6 @@ public/system
 public/assets
 public/packs
 public/packs-test
-public/500.html
 .env
 .env.production
 node_modules/
index 44896afc7b6f9f965ce02048f743aeeb22f9187e..f60c1b9f208364de7b59674f0151eca5abd27991 100644 (file)
@@ -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 (symlink)
index 0000000..45a9078
--- /dev/null
@@ -0,0 +1 @@
+assets/500.html
\ No newline at end of file