We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ec5c8 commit 7ed671aCopy full SHA for 7ed671a
config/application.rb
@@ -9,7 +9,10 @@
9
module RailsBump
10
class Application < Rails::Application
11
config.load_defaults 7.0
12
- config.revision = `git rev-parse --short HEAD 2> /dev/null`.chomp
+ config.revision = `git rev-parse --short HEAD 2> /dev/null`.chomp.presence ||
13
+ ENV["FLY_IMAGE_REF"]&.then { _1[/@sha256:([0-9a-f]+)/, 1] } or
14
+ raise "Could not determine revision."
15
+
16
config.action_mailer.delivery_method = :postmark
17
config.active_record.query_log_tags_enabled = true
18
0 commit comments