Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipheinser/route53-heroku
A simple service to get route 53 to point to your heroku app.
https://github.com/philipheinser/route53-heroku
Last synced: 12 days ago
JSON representation
A simple service to get route 53 to point to your heroku app.
- Host: GitHub
- URL: https://github.com/philipheinser/route53-heroku
- Owner: philipheinser
- License: mit
- Created: 2014-12-12T02:16:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-09T12:11:42.000Z (almost 10 years ago)
- Last Synced: 2024-12-22T23:52:45.307Z (17 days ago)
- Language: JavaScript
- Size: 523 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# heroku - route 53
[![test status](https://travis-ci.org/philipheinser/route53-heroku.svg)](https://travis-ci.org/philipheinser/route53-heroku)
[![npm status](http://img.shields.io/npm/v/route53-heroku.svg?style=flat)](https://www.npmjs.org/package/route53-heroku)
[![node version](https://img.shields.io/node/v/route53-heroku.svg?style=flat)](http://nodejs.org)
[![npm downloads](https://img.shields.io/npm/dm/route53-heroku.svg?style=flat)](https://www.npmjs.org/package/route53-heroku)
[![dependency status](https://david-dm.org/philipheinser/route53-heroku.svg?style=flat)](https://david-dm.org/philipheinser/route53-heroku)
![license](https://img.shields.io/npm/l/route53-heroku.svg?style=flat)[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/philipheinser/route53-heroku)
Point your naked domain *example.com*, hostet on Route53, to your *example.herokuapp.com* Heroku App.
### Options:
```
{
"aws": {
"id": "*******",
"key": "**************",
"region": "eu-west-1",
"zoneid": "*********",
"name": "example.com"
},
"heroku": {
"app": "example.herokuapp.com"
}
}
```### How to use:
Example.js
```
var nconf = require('nconf');
var Updater = require('route53-heroku');//Setup Config
nconf
.argv()
.env()
.file({ file: './config.json' });var route53heroku = new Updater({
aws: nconf.get('aws'),
heroku: nconf.get('heroku')
});route53heroku.on('newDNS', function (newDNS) {
console.log(newDNS);
});route53heroku.on('aws-response', function (res) {
console.log(res);
});route53heroku.start();
```