I would like to answer my own question. bcoz it may help others.
Laravel implemented it with the help of
The requirement can be fixed in few ways.
- Write a bash script for doing deployment.
- Use the Git hooks options.
- Use Bit Bucket Hooks options.
Here I will explain bash script that is what I preferred.
## Project Deployment Script ##
ssh username@hostname <<'ENDSSH'
cd /home/phpadmin/Development/Project ;
git pull origin master;
save the above file as
deploy.sh then make sure it had execute permission. then simply run it from CLI.
now you will get password prompt for server user, just enter it and done !.
Hope it helps someone ..