Skip to content

philipheinser/route53-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku - route 53

test status npm status node version npm downloads dependency status license

Deploy

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();

About

A simple service to get route 53 to point to your heroku app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published