noosfero | script/production: add missing `bundle exec`

Antonio Terceiro gitlab at gitlab.com
Tue Mar 10 12:42:30 BRT 2015


Antonio Terceiro pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>

Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/e0767b1a09d7357ed2b021deadd4d787d83ce450">e0767b1a</a> by Antonio Terceiro
script/production: add missing `bundle exec`

- - - - -


Changes:

=====================================
script/production
=====================================
--- a/script/production
+++ b/script/production
@@ -71,11 +71,11 @@ stop_via_pid_file() {
 
 environments_loop() {
   action="$1"
-  environments=$(find ./config/environments -name *_$RAILS_ENV.rb)
+  environments=$(find ./config/environments -name "*_${RAILS_ENV}.rb")
   if [ "$environments" ]; then
     for environment in $environments; do
       env=$(basename $environment | cut -d. -f1)
-      RAILS_ENV=$env ./script/delayed_job -i $env "$action"
+      RAILS_ENV=$env bundle exec ./script/delayed_job -i $env "$action"
       RAILS_ENV=$env bundle exec ./script/feed-updater "$action" -i $env
     done
   else

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150310/e84ec02a/attachment.html>


More information about the Noosfero-dev mailing list