lib/generators/runner_helper/templates/unit.service.erb in runner_helper-0.0.6 vs lib/generators/runner_helper/templates/unit.service.erb in runner_helper-0.1.0
- old
+ new
@@ -3,10 +3,10 @@
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/home/deploy/<%= application_name %>/current
-ExecStart=/bin/bash -lc 'rails runner -e production "<%= class_name %>Runner.new.service"'
+ExecStart=/bin/bash -lc 'bundle exec rails runner -e production "<%= class_name %>Runner.new.service"'
User=<%= username %>
Group=<%= username %>
UMask=0002
RestartSec=1