Git Product home page Git Product logo

addon-heroku's Introduction

Heroku Connector

This web service provides a means to connect DNSimple domains with Heroku applications.

Structure

gateways - This directory holds modules that deal with external APIs services - Functions that implement business logic

Running Locally

To start the Heroku Connector app:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with npm install
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Running on Heroku

  • Create the Heroku application
  • In the top-level repo directory run:
    • heroku git:remote -a appname where appname is the Heroku app name
    • heroku buildpacks:set https://github.com/HashNuke/heroku-buildpack-elixir.git
    • heroku buildpacks:add https://github.com/gjaldon/heroku-buildpack-phoenix-static.git
    • heroku addons:create heroku-postgresql:hobby-dev
  • Next, set up environment variables
    • heroku config:set APP_HOSTNAME=appname.herokuapp.com where appname is the Heroku app name
    • heroku config:set POOL_SIZE=18 adjust if you use a different postgres tier
    • mix phoenix.gen.secret and use the result in heroku config:set SECRET_KEY_BASE="generated-secret"
    • Add application to DNSimple
      • heroku config:set DNSIMPLE_CLIENT_ID=id
      • heroku config:set DNSIMPLE_CLIENT_SECRET=secret
    • Add application to Heroku
      • heroku config:set HEROKU_CLIENT_ID=id
      • heroku config:set HEROKU_CLIENT_SECRET=secret
  • git push heroku master
  • heroku run "POOL_SIZE=2 mix ecto.migrate"

addon-heroku's People

Contributors

aeden avatar olemchls avatar sbastn 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.