Connect DNSimple domains to Heroku apps
This web service provides a means to connect DNSimple domains with Heroku applications.
gateways
- This directory holds modules that deal with external APIsservices
- Functions that implement business logic
To start the Heroku Connector app:
mix deps.get
mix ecto.create && mix ecto.migrate
npm install
mix phoenix.server
Now you can visit localhost:4000
from your browser.
heroku git:remote -a appname
where appname is the Heroku app nameheroku 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
heroku config:set APP_HOSTNAME=appname.herokuapp.com
where appname is the Heroku app nameheroku config:set POOL_SIZE=18
adjust if you use a different postgres tiermix phoenix.gen.secret
and use the result in heroku config:set SECRET_KEY_BASE="generated-secret"
heroku config:set DNSIMPLE_CLIENT_ID=id
heroku config:set DNSIMPLE_CLIENT_SECRET=secret
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"