Remove public/ files for API apps

- Fixes #25180
上级 f5f1caa0
......@@ -305,6 +305,17 @@ def delete_application_layout_file_if_api_option
end
end
def delete_public_files_if_api_option
if options[:api]
remove_file 'public/404.html'
remove_file 'public/422.html'
remove_file 'public/500.html'
remove_file 'public/apple-touch-icon-precomposed.png'
remove_file 'public/apple-touch-icon.png'
remove_file 'public/favicon.ico'
end
end
def delete_js_folder_skipping_javascript
if options[:skip_javascript]
remove_dir 'app/assets/javascripts'
......
......@@ -105,6 +105,12 @@ def skipped_files
lib/assets
vendor/assets
test/helpers
tmp/cache/assets)
tmp/cache/assets
public/404.html
public/422.html
public/500.html
public/apple-touch-icon-precomposed.png
public/apple-touch-icon.png
public/favicon.ico)
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册