Skip to content

Commit

Permalink
Rename app platform initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
aapomm committed May 11, 2023
1 parent 8d30f6d commit 22610fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# In Heroku, assets:precompile is run before the DB is provisioned causing a
# In App Platforms, assets:precompile is run before the DB is provisioned causing a
# ActiveRecord::ConnectionNotEstablished: connection to server at "127.0.0.1",
# port 5432 failed: Connection refused
#
Expand All @@ -10,7 +10,7 @@
#

Rails.application.reloader.to_prepare do
# only Heroku sets this
# This is set by the App Platforms
if ENV['DATABASE_URL']
# DB isn't ready yet
if !(ActiveRecord::Base.connection rescue false)
Expand Down

0 comments on commit 22610fc

Please sign in to comment.