rharriso / bower-rails

Bundler-like DSL + rake tasks for Bower on Rails
MIT License
1.46k stars 128 forks source link

Capistrano deployment issue #167

Open abhimanyubv opened 9 years ago

abhimanyubv commented 9 years ago

I have installed bower in the app server and I am able to run bundle exec rake bower:install in any release or in current directory. But when I'm trying the same while cap production deploy, the following error is repeated.

Command: cd /home/deploy/apps/xxxx/releases/20150910064532 && ~/.rvm/bin/rvm default do bundle exec rake bower:install CI=true Bower not found! You can install Bower using Node and npm: DEBUG [68147ae5] $ npm install bower -g DEBUG [68147ae5] For more info see http://bower.io/

bc-shusson commented 9 years ago

make sure bower and node are installed and working in your production environment.

jaychris commented 8 years ago

Same issue, bower and node are installed and working, but Cap insists that Bower is not found, with the same error reported above.

abhimanyubv commented 8 years ago

@jaychris check the node install path and add that path in your deploy.rb config file

rayson1223 commented 8 years ago

@abhimanyubv I face the same issues as well. Do you mind to show me an example that how to add node install path into deploy.rb?

abhimanyubv commented 8 years ago

run the below command which bower whatever response you got, set that value to bower_bin in your deploy.rb file

set :bower_bin,

Hope it will help you.

rayson1223 commented 8 years ago

Thanks a lot for the quick responds. It does help me to get through that! =)

SergeyKishenin commented 8 years ago

@abhimanyubv Thanks for following up with the problem.

Could you provide a PR with README update so I can close this issue?