Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

capistrano start task fails #78

Closed
zzip opened this issue Mar 11, 2012 · 2 comments
Closed

capistrano start task fails #78

zzip opened this issue Mar 11, 2012 · 2 comments

Comments

@zzip
Copy link

zzip commented Mar 11, 2012

i get the following error on a cap deploy:

sh: -c: line 0: syntax error near unexpected token >'`

This is on a debian install

changing

sh: -c: line 0: cd /var/www/site/current &&
nohup bundle exec sidekiq -e production -C /var/www/site/current/config/sidekiq.yml
-P /var/www/site/current/tmp/pids/sidekiq.pid &>> /var/www/site/current/log/sidekiq.log &'`

into

sh: -c: line 0: cd /var/www/site/current &&
nohup bundle exec sidekiq -e production -C /var/www/site/current/config/sidekiq.yml
-P /var/www/site/current/tmp/pids/sidekiq.pid & > /var/www/site/current/log/sidekiq.log &'`

fixes the problem, but this would overwrite the log file instead of appending

in the end i used this, which works and should have the same behaviour (output stderr to where stdout is currently redirected)

sh: -c: line 0: cd /var/www/site/current &&
nohup bundle exec sidekiq -e production -C /var/www/site/current/config/sidekiq.yml
-P /var/www/site/current/tmp/pids/sidekiq.pid >> /var/www/site/current/log/sidekiq.log 2>&1 &'`

@mperham
Copy link
Collaborator

mperham commented Mar 11, 2012

What version of Debian and bash are you running?

On 11 Mar 2012, at 04:57, Dale Hofkensreply@reply.github.com wrote:

i get the following error on a cap deploy:

sh: -c: line 0: syntax error near unexpected token >'`

This is on a debian install

changing

sh: -c: line 0: cd /var/www/site/current && nohup bundle exec sidekiq -e production -C /var/www/site/current/config/sidekiq.yml -P /var/www/site/current/tmp/pids/sidekiq.pid &>> /var/www/site/current/log/sidekiq.log &'`

into

sh: -c: line 0: cd /var/www/site/current && nohup bundle exec sidekiq -e production -C /var/www/site/current/config/sidekiq.yml -P /var/www/site/current/tmp/pids/sidekiq.pid & > /var/www/site/current/log/sidekiq.log &'`

fixes the problem, but this would overwrite the log file instead of appending

in the end i used this, which works and should have the same behaviour (output stderr to where stdout is currently redirected)

sh: -c: line 0: cd /var/www/site/current && nohup bundle exec sidekiq -e production -C /var/www/site/current/config/sidekiq.yml -P /var/www/site/current/tmp/pids/sidekiq.pid >> /var/www/site/current/log/sidekiq.log 2>&1 &'`


Reply to this email directly or view it on GitHub:
#78

@zzip
Copy link
Author

zzip commented Mar 11, 2012

It's a Debian Lenny install, with GNU bash, version 3.2.39(1)-release-(x86_64-pc-linux-gnu)

I see you already updated the code, thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants