Ensure local env files are properly ignored

trunk
Matt Brictson 2 years ago
parent d12abef774
commit 63c76860bc
No known key found for this signature in database
GPG Key ID: E379525AE7FB9561

@ -42,6 +42,13 @@ def apply_template!
after_bundle do
apply "app/assets/template.rb"
append_to_file ".gitignore", <<~IGNORE
# Ignore application config.
/.env.development
/.env.*local
IGNORE
if install_vite?
File.rename("app/javascript", "app/frontend") if File.exist?("app/javascript")
run_with_clean_bundler_env "bundle exec vite install"

Loading…
Cancel
Save