Skip to content

Commit b132744

Browse files
authored
Merge pull request rails#54846 from vlado/prevent_trailing_blank_lines_in_deploy_config
Generate `config/deploy.yml` file without unnecessary blank lines
2 parents 5f04ead + b45c640 commit b132744

File tree

1 file changed

+2
-2
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+2
-2
lines changed

railties/lib/rails/generators/rails/app/templates/config/deploy.yml.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ aliases:
7373
logs: app logs -f
7474
dbc: app exec --interactive --reuse "bin/rails dbconsole --include-password"
7575

76-
<% unless skip_storage? %>
76+
<% unless skip_storage? -%>
7777
# Use a persistent storage volume for sqlite database files and local Active Storage files.
7878
# Recommended to change this to a mounted volume path that is backed up off server.
7979
volumes:
8080
- "<%= app_name %>_storage:/rails/storage"
8181

82-
<% end %>
82+
<% end -%>
8383
# Bridge fingerprinted assets, like JS and CSS, between versions to avoid
8484
# hitting 404 on in-flight requests. Combines all files from new and old
8585
# version inside the asset_path.

0 commit comments

Comments
 (0)