Commit e0767b1a09d7357ed2b021deadd4d787d83ce450

Authored by Antonio Terceiro
1 parent 706403fc

script/production: add missing `bundle exec`

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
script/production
@@ -71,11 +71,11 @@ stop_via_pid_file() { @@ -71,11 +71,11 @@ stop_via_pid_file() {
71 71
72 environments_loop() { 72 environments_loop() {
73 action="$1" 73 action="$1"
74 - environments=$(find ./config/environments -name *_$RAILS_ENV.rb) 74 + environments=$(find ./config/environments -name "*_${RAILS_ENV}.rb")
75 if [ "$environments" ]; then 75 if [ "$environments" ]; then
76 for environment in $environments; do 76 for environment in $environments; do
77 env=$(basename $environment | cut -d. -f1) 77 env=$(basename $environment | cut -d. -f1)
78 - RAILS_ENV=$env ./script/delayed_job -i $env "$action" 78 + RAILS_ENV=$env bundle exec ./script/delayed_job -i $env "$action"
79 RAILS_ENV=$env bundle exec ./script/feed-updater "$action" -i $env 79 RAILS_ENV=$env bundle exec ./script/feed-updater "$action" -i $env
80 done 80 done
81 else 81 else