Answer the question
In order to leave comments, you need to log in
How to properly set permissions for bitbucket?
I'm trying to do an automatic deployment using https://gist.github.com/krisnoble/4692643 .
I do approximately according to this article pachkov.ru/?p=1564 .
The problem is that if you do everything under your user, everything works from the console and everything is ok.
But you need from under apache (www-data).
And then I encounter a lack of rights when sudo -u www-data git pull
doing just git pull - everything is ok.
What could be the problem?
UPD: redid it, now it requires every time you sudo -u www-data git pull to enter a password.
With just git pull does not require
Answer the question
In order to leave comments, you need to log in
Probably the www-data user does not have the SSH key that is used by the main user and added to the bitbucket
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question