Skip to content

Commit 516135e

Browse files
Stop ignoring old .env.erb files from Kamal 1 (rails#53000)
`.env.erb` files are not generated any more in new Rails apps, so this commit removes them from the ignore files. Kamal 2 now manages secrets with .kamal/secrets, and this file is meant to be safe for git by default.
1 parent 592a52b commit 516135e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

railties/lib/rails/generators/rails/app/templates/dockerignore.tt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
# Ignore bundler config.
88
/.bundle
99

10-
# Ignore all environment files (except templates).
10+
# Ignore all environment files.
1111
/.env*
12-
!/.env*.erb
1312

1413
# Ignore all default key files.
1514
/config/master.key

railties/lib/rails/generators/rails/app/templates/gitignore.tt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
# Ignore bundler config.
88
/.bundle
99

10-
# Ignore all environment files (except templates).
10+
# Ignore all environment files.
1111
/.env*
12-
!/.env*.erb
1312

1413
# Ignore all logfiles and tempfiles.
1514
/log/*

0 commit comments

Comments
 (0)