ruby on rails - EC2 - cannot deploy as "bitnami" user -


i using capistrano deploying rails app amazon ec2. in deploy files, have following credentials connecting amazon ec2:

set :user, "bitnami" #set :user, "root" server "ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com", :app, :web, :db, :primary => true ssh_options[:keys] = ["/users/ada/my_amazon_ec2.pem"] 

when run cap deploy:setup , cap deploy:check, following:

the following dependencies failed. please check them , try again: --> not have permissions write `/www/myapp'. (ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com) --> not have permissions write `/www/myapp/releases'. (ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com) 

how's possible? able connect via ssh ec2 user bitnami, when try user root, message should use bitnami user login , connection closed.

if try change in deploy files change bitnami user root, whole deployment process ok, when log in through ssh (as bitnami user) ec2, don't see files should deployed, final directory empty.

what wrong in case?

thank much

sudo chown -r <user> <folder path> 

did trick. user not owner of folder , hence cap check throwing error.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -