Ok so you will be bugged once more.
I have decided to use capistrano to upload one of my projects in symfony to cpanel.
The source control i am using is mercurial, oh wes we love mercurial.
So i set my control source to reploy.rb to mercurial with http authentication.
oh god why did i do that.
i searched the internets trying to find for answer 'how to authenticate capistrano with http method'.
my deploy.rb looked like this
####use this for the command prompt to work
default_run_options[:pty] = true
set :repository, "http://my_host/mercurial/my_project"
set :scm, :mercurial
set :scm_prefer_prompt, :true
so i run the cap deploy:cold
http authentication appears, welcome to my mercurial repo blah blah.
username:
my_user
i am hitting the enter and nothing happens, so i say its ok i will search inputs in ruby, internet failed us. so i am thinking what to do what to do
and it hits me instead of the http lets use the ssh method to retrieve from mercurial.
so i enter these options to my deploy.rb.
default_run_options[:pty] = true
#####local
set :repository, "ssh://my_user@my_host//my_path_to_the_repo/my_project"
set :scm, :mercurial
set :scm_prefer_prompt, :true
and voila cap deploy:cold
asks for ssh password and hg asks for another password.
my_user connects through ssh and retrieves the mercurial repo.
and if for some reason you need to set the ssh port this is the command you should put in capistrano config.
ssh_options[:port] = 22000
i hope you haven't been bugged too much.
Εμφάνιση αναρτήσεων με ετικέτα cpanel. Εμφάνιση όλων των αναρτήσεων
Εμφάνιση αναρτήσεων με ετικέτα cpanel. Εμφάνιση όλων των αναρτήσεων
Παρασκευή 6 Αυγούστου 2010
kapistrano + cpanel me timbers
Ok so you will be bugged once more.
I have decided to use capistrano to upload one of my projects in symfony to cpanel.
So the home of each user in cpanel is of the form
/home/'my_user' for example /home/test if your user is test.
so i set deploy_to in deploy.rb
to
set :deploy_to, "/home/knightmare"
i am entering cap deploy:setup (and the web server goes error 505)
No php script was working in my cpanel public_html and i and i have been wandering what goes wrong and what goes wrong. No help in the logs nothing to be found,
except from public should not be writeable by the group and i can find sys_cpanel.i have fixed the not writeable group for the public but not the sys_cpanel.
And after several hours of debugging in the the air i am entering cap deploy:setup
and i view in the screen chmod g+w /home/knightmare.
And i say what the ......
so that was it my pain my agony with cpanel. capistrano has been doing the deploy path writable to group.
i restored the home with chmod 755 /home/knightmare and everything was fine now, the web server was back to normal.
I have decided to use capistrano to upload one of my projects in symfony to cpanel.
So the home of each user in cpanel is of the form
/home/'my_user' for example /home/test if your user is test.
so i set deploy_to in deploy.rb
to
set :deploy_to, "/home/knightmare"
i am entering cap deploy:setup (and the web server goes error 505)
No php script was working in my cpanel public_html and i and i have been wandering what goes wrong and what goes wrong. No help in the logs nothing to be found,
except from public should not be writeable by the group and i can find sys_cpanel.i have fixed the not writeable group for the public but not the sys_cpanel.
And after several hours of debugging in the the air i am entering cap deploy:setup
and i view in the screen chmod g+w /home/knightmare.
And i say what the ......
so that was it my pain my agony with cpanel. capistrano has been doing the deploy path writable to group.
i restored the home with chmod 755 /home/knightmare and everything was fine now, the web server was back to normal.
Ετικέτες
capistrano,
cpanel,
error 505,
symfony,
sys_cpanel
Εγγραφή σε:
Αναρτήσεις (Atom)