Code Monkey home page Code Monkey logo

service-setup's Introduction

service-setup

This tool:

  • creates a pipeline on Heroku, which will be owned by your Heroku Team
  • creates a new Rollbar project
  • for each environment (staging and production)
    • creates an app on Heroku (owned by your Heroku Team)
    • add the app to the pipeline
    • creates the heroku-postgresql add-on
    • installs default buildpacks
    • connects the app to the newly created Rollbar project
    • creates a new log for your team on Logentries
    • configure the Heroku app to drains its log to Logentries

To make it work:

  • create the .config.json file in the config/ directory
  • the file should look like this:
      {
      	"herokuAPIEndpoint": "https://api.heroku.com",
      	"herokuTeam": "<your team name on Heroku>",
      	"contextName": "<the name of the new application>",
      	"envs": [
      		"staging",
      		"production"
      	],
      	"buildpacks": [
      		"<the url of the buildpack>",
      		"<you can add more buildpacks>",
      	],
      	"logentriesAPIEndpoint": "https://rest.logentries.com",
      	"logentriesHerokuLogStructureID": "73de19ab-366b-4aa1-8f2d-d2b2128f1771",
      	"rollbarAPIEndpoint": "https://api.rollbar.com/api/1"
      }
  • you will also need to set the following environment variables:
    • HEROKU_API_KEY
    • LOGENTRIES_API_KEY
    • LOGENTRIES_LOGSET_KEY
    • ROLLBAR_ACCOUNT_ACCESS_TOKEN

After you've added your configuration, simple run go build service_setup.go to build the binary and then ./service_setup to run the tool.

service-setup's People

Contributors

ryanzidago avatar

Watchers

 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.