Code Monkey home page Code Monkey logo

hubble's Introduction

Hubble

This document covers usage info on how to run Hubble on your own servers.

Made with ❤️ by
Figment Networks

Dependencies

  • Ruby 2.5+
  • Node LTS
  • Accessible PostgreSQL database.
  • PostMark account for email notifications.
  • Rollbar account for exception tracking.

How to Setup Hubble

  1. Fork this repo!
  2. Generate encrypted secrets with bin/rails secrets:setup. Use config/encrypted_secrets_quickstart.yml to see what values are needed for what environments. Store config/secrets.yml.enc somewhere safe as it won't be committed.
  3. Setup your instance:
    export [email protected]
    export HUBBLE_HOST=ip-or-hostname-of-server
    export HUBBLE_RAILS_ENV=production
    export HUBBLE_KEY=~/.ssh/hubble-key.pem
    export HUBBLE_DOMAIN=hubble.your.domain
    export HUBBLE_REMOTE_USER=ubuntu
    ./setup/bootstrap.sh
    
    This automated process is meant for a Ubuntu 18.04 LTS install. We use AWS for this. Hubble uses HTTPS everywhere, so watch the output for when it asks you to create a DNS record.
  4. Assuming that all goes well, there will be a URL you can visit to claim an admin account and setup a password/2FA.
  5. In admin, create a new Cosmos chain with the chain name and gaiad RPC/LCD info. Make sure to click 'enable' at the top.
  6. Next ssh into the machine, start screen and do the initial sync:
    cd /hubble/app/current
    bin/rake sync:cosmos:all events:cosmos:all stats:cosmos:all
    
    That will take a good long while depending on how long the chain you're syncing has been going for.
  7. Once it's done, you will want to install the crontab entries. You can either run bin/bundle exec whenever --update-crontab right now, or just deploy again and they'll get installed automatically.

How to Deploy

Use the appropriate generated deploy script if you used our setup scripts:

bin/deploy-{RAILS_ENV}.sh

Or do it manually:

RAILS_ENV=staging DEPLOY_USER=ubuntu DEPLOY_HOST=ip-or-hostname DEPLOY_KEYS=~/.ssh/hubble.pem bin/bundle cap staging deploy

hubble's People

Contributors

rfunduk 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.