Skip to content

Commit 688d47b

Browse files
committed
Allow seeds to run in heroku "production" env
1 parent dc56a64 commit 688d47b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

app.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
},
55
"environments": {
66
"review": {
7+
"env": {
8+
"REVIEW_APP": "true"
9+
},
710
"addons": ["heroku-postgresql"]
811
}
912
}

db/seeds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def find_or_create_nj_archived_intake(attributes)
116116
)
117117
end
118118

119-
unless Rails.env.production?
119+
unless Rails.env.production? && ENV["REVIEW_APP"].nil?
120120

121121
# 2023 and 2024 AZ Clients (same address, contact)
122122
az_repeat_data = [

0 commit comments

Comments
 (0)