Sync repository from BitBucket with FTP directory, using webhooks 2.0
- Clone Repository
- Create secrets.json in settings directory.
{
"SECRET_KEY" : "your_secret_key",
"GIT_USER_NAME" : "git_user_name",
"GIT_USER_PASS" : "git_user_pass",
"EMAIL_HOST_USER" : "your_email@domain.com",
"EMAIL_HOST_PASSWORD" : "your_email_password"
}
- pip install -r requirements/base.txt
- python manage.py makemigrations
- python manage.py migrate
- python manage.py createsuperuser
- Run.
- Python 3.4.3
- Django==1.9.1
- GitPython==1.0.1
- gitdb==0.6.4
- smmap==0.9.0
- Open 'Sites' and add/change domain name to your current domain.
- Open FTPServers and add at FTP server details.
- Open Listeners and add Listener, - add Production or Live server (or both). After saving, copy listener URL. To confirm the details press 'View on Site' - you should see your bitBucket repository.
- Open BitBucket Repository -> Settings -> Webhooks, press Add webhook, insert title and copy listener link, check 'Skip certificate verification' and save.
- Add mailboxes to be able to get reports.
- Make some push to check it, you should get confirmation on email if you configured it properly.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- Vitaliy Shebela (vitalik.privat@gmail.com)
This file is part of Deployer.
Deployer is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Deployer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Deployer. If not, see http://www.gnu.org/licenses/.