A Simple Application to Deploy Project directly to Cloud.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Final Finishing before Release Mar 11, 2018
images Images for README.md Mar 11, 2018
public Support for view log files via browser Mar 11, 2018
routes Final Finishing before Release Mar 11, 2018
.gitignore Initial commit Mar 10, 2018
JSONHelper.js JSON Helper modules Mar 10, 2018
LICENSE Initial commit Mar 10, 2018
README.md readme after v1 Mar 11, 2018
autoploy.json autoploy.js file Mar 10, 2018
autoploy_main.js
package-lock.json Final Finishing before Release Mar 11, 2018
package.json Final Finishing before Release Mar 11, 2018

README.md

N|Solid

A Simple Application to Deploy Project from Github directly to Cloud.
Stable Release - v1.0

Installation

  • Configure SSH for Github on Cloud

  • 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 be push event N|Solid

Made during Mumbai Hackathon 2018