Deploy automatico Bitbucket - PHP

Asked

Viewed 251 times

0

I am trying to use Bitbucket Automatic Deploy via Webhook for my application. My application is PHP using Laravel platform. Good, until then I’m following this tutorial: http://www.cogumello.com/programcao/comodo-deploy-automaticom-bitbucket/comment-commentpage-1/#comment-5424

I did everything according to the tutorial, however, my application is not being updated.

In the Bitbucket Webhook logs is the result of Success, IE called correctly my URL, within the generated logs of my application is the success message, IE, executed everything correct, but the application did not update...

I don’t know what else to do..

  • If you want to try another approach, look at this tutorial. It is not 100% automatic, but only perform the command git push is already very practical. Laravel Envoy if you think the problem is in php script.

  • Opa and ai Vinicius, I had seen this already, a lot to do I found confusing... This is very simple, apparently works.. problem is that in my case it is not updating the branch.. hahahahah

1 answer

1

I know the question is old but, currently it is possible to deploy automated via bitbucket-pipelines using in conjunction with the git-ftp. Just enable in your repository to use and configure your bitbucket-pipelines.yml with build. It would be something like:

image: samueldebruyn/debian-git

pipelines:
  default:
    - step:
       script:
        - apt-get update
        - apt-get -qq install git-ftp
        - git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST

You can test the syntax of your pipeline yml here.

  • Friend, can you post a step by step how to do it? I’m looking to integrate the automatic deploy into a windows server.

  • 1

    @Italorodrigo, basically the bitbucket pipeline is a manuscript of the same process that you run to upload your files to your server. The difference is that it mounts a virtual machine (in the example above a debian) and runs some process. To deploy via FTP you may want to install on this virtual machine an ncftp, scp or git ftp at that link explaining the installation via git-ftp

Browser other questions tagged

You are not signed in. Login or sign up in order to post.