2

For the last few months, I have been working with Laravel, and I am just impressed the way the site get deployed to the server.

Is there any way to deploy Joomla site using Envoy task runner like Laravel, so there is no need of login to server and pull from bitbucket?

thanks in advance.

2

In Joomla, there is no similar own tool for defining common tasks to be run on your remote servers. As usual, you can integrate Jenkins, Docker, Gulp, Bower or other tools to automate tasks.

Related with the question, I have found these JAB sessions are interesting:

2

I would like to answer my own question. bcoz it may help others.

Laravel implemented it with the help of Envoy,

The requirement can be fixed in few ways.

  1. Write a bash script for doing deployment.
  2. Use the Git hooks options.
  3. Use Bit Bucket Hooks options.

Here I will explain bash script that is what I preferred.

#!/bin/bash
## Project Deployment Script ##
ssh username@hostname <<'ENDSSH'
cd /home/phpadmin/Development/Project ;
git pull origin master;
ENDSSH

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 ..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.