This code don't have any garantee, I wrote it on the fly. I hope you get
the idea.
For permissions problem:
after "deploy", :change_permissions
after "deploy:migrations", :change_permissions
desc "Change permissions"
task :change_permissions, :roles => [ :app, :db, :web ] do
sudo "chown -R domain:psaserv #{deploy_to}"
end
To create a database:
desc "Create database"
task :create_database, :roles => [ :app, :db, :web ] do
run "cd #{current_path} && rake RAILS_ENV=production db:create"
end
Regards
rubybox wrote:
Hi thanks,
I haven tlooked into this after coudent get it to work.
The problem still exists but since i did not have to deploy yet I did
changes manually in ssh session on my server.
The problems are still exists. And I havent been able to find solution
1) Change file /group permissions on deploy directory to
domainname:psaserv
2) Creating datbase ( I guess I do that manually with plesk, since I
wont deploy more than a few apps anyway so this is not a big deal )
This is my current deploy.rb, could you point me to how to correct it
so it works?
Would highly appreciate, thanks. Changed some data so could be some
typo in it but it works without the file permissions
http://pastie.org/848333
On Feb 14, 2:30 pm, Lee Hambley <[email protected]> wrote:
Hi Rubybox,
Sorry that your question went unanswered, is this still a problem for you?
-- Lee Hambley
Twitter: @leehambley | @capistranorb
--
Rafa
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en