Skip to content

Commit

Permalink
Use bundle exec to run delayed jobs
Browse files Browse the repository at this point in the history
When installing Consul Democracy 2.2.0, we were getting an error:

```
`require': cannot load such file -- sassc-embedded (LoadError)
from <internal:rubygems/core_ext/kernel_require.rb>:86:in `require'
from config/application.rb:1:in
```

No idea why this gem isn't detected when running `bin/delayed_job`.
When deploying with Capistrano, we use `bundle exec bin/delayed_job`,
and that works fine, so we're using it here as well.
  • Loading branch information
javierm committed Jun 26, 2024
1 parent 38f8e25 commit 43cbfc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/queue/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Start DelayedJobs queue
shell: "{{ rvm_command }} && RAILS_ENV={{ env }} EXECJS_RUNTIME=Disabled bin/delayed_job -m -n 2 restart"
shell: "{{ rvm_command }} && RAILS_ENV={{ env }} EXECJS_RUNTIME=Disabled bundle exec bin/delayed_job -m -n 2 restart"
args:
executable: /bin/bash
chdir: "{{ release_dir }}"

0 comments on commit 43cbfc6

Please sign in to comment.