Git Product home page Git Product logo

js.deploy.autodeploy-bitbucket's Introduction

js.deploy.autodeploy-bitbucket

Automate your application deployment on Linux target machines. You can configure 1 or many repositories and script a shell script with custom steps to deploy as you require.

Prerequisites

For this code to work you will need to install:

  • git
  • Node.JS 0.10.x or higher
  • NPM package manager

Install

After installing git and node.JS. You will need to install this solution as follows:

  • checkout this repository on the destination server
  • run [npm install] where the package.json file is located
  • edit and change the settings.js according to your configuration needs.
  • run node main.js (verify that server is listening on specified port)
  • Configure a Bitbucket Webhook POST hook in your Repository settings and add as follows: ** http://yourserver.com:specified-port/deploy/

Settings

port : On what server port the Webhook Receiver is listening workingfolder : Working folder on server targets : repositories that need to be monitored (array) target.url : relative Bitbucket Repository url (e.g. /team/project/ ) target.folder : absolute path of repository folder on disk target.branch : which branch you choose that triggers a new GIT PULL

deploy.sh

Each type of application has it's own particulair deployment steps. This solutions delegates all operations to the deploy.sh shell script. Making it easy for you to script some custom deployment actions. Like stop/start services.

Troubleshooting

.... We'll process that after we get some community feedback ....

Finally

Right! You should be able to POST your commits and have them handled on the server as you go.

js.deploy.autodeploy-bitbucket's People

Stargazers

Jason avatar GS Chavan avatar Mauro avatar Antonio Caputo avatar Cristo Alonso avatar

Watchers

therealburningman avatar James Cloos avatar Vlad avatar  avatar Joe Oliver avatar Cristo Alonso avatar Tom Clement avatar Bart Jansen avatar Tom Steele avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.