A Simple Application to Deploy Project from Github directly to Cloud.
Stable Release - v1.0
-
Connect to Cloud via SSH
-
Install node.js
-
Clone autoploy and change directory to Application
$ git clone https://github.com/vkartik97/autoploy.git
$ cd autoploy
$ git update-index --assume-unchanged config/projects.json
and$ git update-index --assume-unchanged config/projects.json
to avoid pull conflicts
-
Add Repository details to autoploy/config/projects.json in format :
{ "REPOSITORY_NAME/BRANCH_NAME": [GITHUB_LINK, LOCATION_OF_DEPLOYMENT] }
-
Add deployment details to autoploy.js in the Root Directory of Project to deploy using autoploy :
{ "run": [ "BUILD_COMMMAND_1", "BUILD_COMMMAND_1" ] }
-
Change Directory to autoploy
$ cd autoploy
-
Instal Dependencies
$ npm install
-
Run the Application
$ node autoploy_main.js
-
Configure Github Webhooks and Project to work with autoploy
In Project Settings, add a Webhook pointing to URL:PORT/deploy of autoploy running on Cloud, the Content Type should be application/json and the Event to triger webhook should bepush
event