Synchronize Bitbucket with Web Server

Asked

Viewed 1,512 times

2

Is it possible to synchronize my project in Bitbucket with my web server? Instead of sending the project via FTP, it would be synchronized with my Bitbucket repository without having to send the project multiple times (via FTP p/web server and via SSH to Git Versioning server).

1 answer

1


Yes it is possible.

What you need is to clone your bitbucket project from the web server. Here you find how to clone inside the server using git.

Briefly:

git clone https://[email protected]/user/project.git

This will copy the project to the current folder.

Ai every time you want to upgrade the project.

git pull

Inside the project folder.

You probably use a remote server. Then you need to access your server via SSH and execute these commands. You can automate this task with some tools like Ant in Java.

Browser other questions tagged

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