This project is for update website using git as alternative to ftp.
Installation guide:
Implementation of pull script
copy to the pull.sh script to /var/script folder
- chown www-data:www-data /var/script
- chmod 755 /var/script/pull.sh Implementation of upgrade module in yii website
- copy upgrade folder to your protected/modules
cofigure protected/config/main to include below code in modules:
'modules'=>array(
// uncomment the following to enable the Gii tool
'upgrade'=>array(
'scriptPath' => '/var/script/pull.sh'
)
),
Implemenation on Server
make sure you PHP server support exec command
install git on linux that running PHP server
make sure your website folder and files ownership is www-data
configure git repository
Got to git config in the repository located at .git/config
add below line
[credential]
helper = store --file=/var/script/gitcredential
- create gitcredential in /var/script and add a below line in file https://[username]:[password]@bitbucket.org
Get SourceCode from bitbucket: Project page
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.