parent
ab8730cb1f
commit
1809fadc82
@ -1,9 +1,4 @@ |
||||
#!/usr/bin/env ruby |
||||
begin |
||||
load File.expand_path('../spring', __FILE__) |
||||
rescue LoadError => e |
||||
raise unless e.message.include?('spring') |
||||
end |
||||
APP_PATH = File.expand_path('../config/application', __dir__) |
||||
require_relative '../config/boot' |
||||
require 'rails/commands' |
||||
|
@ -1,9 +1,4 @@ |
||||
#!/usr/bin/env ruby |
||||
begin |
||||
load File.expand_path('../spring', __FILE__) |
||||
rescue LoadError => e |
||||
raise unless e.message.include?('spring') |
||||
end |
||||
require_relative '../config/boot' |
||||
require 'rake' |
||||
Rake.application.run |
||||
|
@ -0,0 +1,11 @@ |
||||
#!/usr/bin/env ruby |
||||
APP_ROOT = File.expand_path('..', __dir__) |
||||
Dir.chdir(APP_ROOT) do |
||||
begin |
||||
exec "yarnpkg", *ARGV |
||||
rescue Errno::ENOENT |
||||
$stderr.puts "Yarn executable was not detected in the system." |
||||
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" |
||||
exit 1 |
||||
end |
||||
end |
@ -1,4 +1,4 @@ |
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) |
||||
|
||||
require 'bundler/setup' # Set up gems listed in the Gemfile. |
||||
require 'bootsnap/setup' |
||||
require 'bootsnap/setup' # Speed up boot time by caching expensive operations. |
||||
|
@ -0,0 +1,14 @@ |
||||
# Be sure to restart your server when you modify this file. |
||||
|
||||
# Version of your assets, change this if you want to expire all your assets. |
||||
Rails.application.config.assets.version = '1.0' |
||||
|
||||
# Add additional assets to the asset load path. |
||||
# Rails.application.config.assets.paths << Emoji.images_path |
||||
# Add Yarn node_modules folder to the asset load path. |
||||
Rails.application.config.assets.paths << Rails.root.join('node_modules') |
||||
|
||||
# Precompile additional assets. |
||||
# application.js, application.css, and all non-JS/CSS in the app/assets |
||||
# folder are already added. |
||||
# Rails.application.config.assets.precompile += %w( admin.js admin.css ) |
@ -0,0 +1,25 @@ |
||||
# Be sure to restart your server when you modify this file. |
||||
|
||||
# Define an application-wide content security policy |
||||
# For further information see the following documentation |
||||
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy |
||||
|
||||
# Rails.application.config.content_security_policy do |policy| |
||||
# policy.default_src :self, :https |
||||
# policy.font_src :self, :https, :data |
||||
# policy.img_src :self, :https, :data |
||||
# policy.object_src :none |
||||
# policy.script_src :self, :https |
||||
# policy.style_src :self, :https |
||||
|
||||
# # Specify URI for violation reports |
||||
# # policy.report_uri "/csp-violation-report-endpoint" |
||||
# end |
||||
|
||||
# If you are using UJS then enable automatic nonce generation |
||||
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } |
||||
|
||||
# Report CSP violations to a specified URI |
||||
# For further information see the following documentation: |
||||
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only |
||||
# Rails.application.config.content_security_policy_report_only = true |
@ -0,0 +1,5 @@ |
||||
# Be sure to restart your server when you modify this file. |
||||
|
||||
# Specify a serializer for the signed and encrypted cookie jars. |
||||
# Valid options are :json, :marshal, and :hybrid. |
||||
Rails.application.config.action_dispatch.cookies_serializer = :json |
@ -1,6 +1,6 @@ |
||||
%w( |
||||
%w[ |
||||
.ruby-version |
||||
.rbenv-vars |
||||
tmp/restart.txt |
||||
tmp/caching-dev.txt |
||||
).each { |path| Spring.watch(path) } |
||||
].each { |path| Spring.watch(path) } |
||||
|
Loading…
Reference in new issue