Ruby on Rails Thursday, November 19, 2015

I hope someone can help with a capistrano problem.
I have been using Capistrano to deploy a rails 3.2 app for a little
while with no problems. Having upgraded the app to rails 4.2.5,
however, I have a problem when I try to deploy it using
cap production deploy
All runs well until it tries to run a command:

cd /site/releases/20151119150821 && /usr/bin/env cp
/site/releases/20151119150821/public/assets/manifest-72e5c145db1ffed834c05d9e2e69721e.json
/site/releases/20151119150821/public/assets/manifest.yml
/site/releases/20151119150821/assets_manifest_backup

The problem is that there appears to be a newline after .json so the result is:

DEBUG [c1a8b7a9] cp:
DEBUG [c1a8b7a9] missing destination file operand after
'/site/releases/20151119150821/public/assets/manifest-72e5c145db1ffed834c05d9e2e69721e.json'
DEBUG [c1a8b7a9]
DEBUG [c1a8b7a9] Try 'cp --help' for more information.
DEBUG [c1a8b7a9] bash: line 1:
/site/releases/20151119150821/public/assets/manifest.yml: Permission
denied

I have not enough experience with capistrano to have any idea where to
even start looking for the problem so any help will be much
appreciated.

Google has been of little help to me in this.

rails 4.2.5, capistrano 3.4.0

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuy9R_DHQSxhTBh3FKEDdv8rq3xHdCeTTPof8Su_9kapQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment