File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 12
12
],
13
13
"environments" : {
14
14
"review" : {
15
- "addons" : [" heroku-postgresql:mini" ]
15
+ "addons" : [" heroku-postgresql:mini" ],
16
+ "env" : {
17
+ "RAILS_ENV" : " staging"
18
+ }
16
19
}
17
20
},
18
21
"buildpacks" : [
30
33
}
31
34
},
32
35
"scripts" : {
33
- "postdeploy" : " bundle exec rails db:schema:load && bundle exec rails db:seed && bundle exec rails dojos:update_db_by_yaml && bundle exec rails dojo_event_services:upsert && bundle exec rails assets:precompile RAILS_ENV=staging "
36
+ "postdeploy" : " bundle exec rails db:schema:load && bundle exec rails db:seed && bundle exec rails dojos:update_db_by_yaml && bundle exec rails dojo_event_services:upsert && bundle exec rails podcasts:upsert && bundle exec rails assets:precompile"
34
37
},
35
38
"stack" : " heroku-22"
36
39
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace :podcasts do
10
10
11
11
logger . info ( '==== START podcasts:upsert ====' )
12
12
13
- ANCHOR_FM_RSS = Rails . env . test? ?
13
+ ANCHOR_FM_RSS = ( Rails . env . test? || Rails . env . staging? ) ?
14
14
Rails . root . join ( 'spec' , 'sample_anchorfm.rss' ) . to_s :
15
15
'https://anchor.fm/s/54d501e8/podcast/rss'
16
16
rss = RSS ::Parser . parse ( ANCHOR_FM_RSS , false )
You can’t perform that action at this time.
0 commit comments