node.js cloud deployment

34
Cloud Deployment Cloud Deployment Less fluff more stuff http://www.meetup.com/Pittsburgh-Node-js/

Upload: nicholas-mcclay

Post on 15-Jan-2015

366 views

Category:

Documents


2 download

DESCRIPTION

Learn how to build your own continous deployment your Node.js projects with EC2

TRANSCRIPT

Page 1: Node.js Cloud deployment

Cloud DeploymentCloud DeploymentLess fluff more stuffLess fluff more stuff

http://www.meetup.com/Pittsburgh-Node-js/

Page 2: Node.js Cloud deployment

UX Designer & DeveloperNicholas McClayNicholas McClay

Page 3: Node.js Cloud deployment

BLAH BLAH CLOUDBLAH BLAH CLOUD

Page 4: Node.js Cloud deployment

The cloud is likeThe cloud is like

Page 5: Node.js Cloud deployment

What I wantWhat I want

Page 6: Node.js Cloud deployment

What I boughtWhat I bought

Page 7: Node.js Cloud deployment

This presentationThis presentation

Page 8: Node.js Cloud deployment

UnixUnix

Page 9: Node.js Cloud deployment

What I wantWhat I want

Page 10: Node.js Cloud deployment

What I wantWhat I want

+ Custom Hooks+ Custom Hooks

Page 11: Node.js Cloud deployment

Pick your hosting Pick your hosting providerprovider

Page 12: Node.js Cloud deployment

Create Security GroupCreate Security Group

Page 13: Node.js Cloud deployment

Launch Launch

Page 14: Node.js Cloud deployment

Associate new addressAssociate new address

Page 15: Node.js Cloud deployment

Make sure permissions are 600Make sure permissions are 600

SSH into serverSSH into server

Page 17: Node.js Cloud deployment

++

Page 18: Node.js Cloud deployment

SecuringSecuring

copy private key to local machine and addcopy private key to local machine and add

Page 19: Node.js Cloud deployment

++

https://github.com/sitaramc/gitolite

http://sitaramc.github.com/gitolite/master-toc.html

Page 20: Node.js Cloud deployment

Managing ReposManaging Repos

Page 21: Node.js Cloud deployment

Adding ReposAdding Repos

Page 22: Node.js Cloud deployment

Adding UsersAdding Users

Page 23: Node.js Cloud deployment
Page 24: Node.js Cloud deployment

BUT WAIT THERE’S MORE!BUT WAIT THERE’S MORE!

Page 25: Node.js Cloud deployment

Adding GroupsAdding Groups

Page 26: Node.js Cloud deployment

Git HooksGit Hooks

Default hook location: .git/hooksDefault hook location: .git/hooks

relevant server side hooks:relevant server side hooks:- pre-receive- pre-receive- post-receive- post-receive

Page 27: Node.js Cloud deployment

Enabling hooks in gitoliteEnabling hooks in gitolite

Page 28: Node.js Cloud deployment

Post hook Heaven here I come!Post hook Heaven here I come!

No such luck...No such luck...

Page 29: Node.js Cloud deployment

Custom Hook ScriptsCustom Hook Scripts

http://bugsplat.info/2012-10-27-hosting-private-git-repositories-with-gitolite.html

https://github.com/peterkeen/git-hooks

Reset gitolite setupReset gitolite setup

Page 30: Node.js Cloud deployment

Actually useful hooksActually useful hooks

Page 31: Node.js Cloud deployment

Repo MirroringRepo Mirroring

Page 32: Node.js Cloud deployment

Local CloneLocal Clone

Page 33: Node.js Cloud deployment

And lots lots moreAnd lots lots more

https://github.com/peterkeen/git-hooks

http://sitaramc.github.com/gitolite/master-toc.htmlhttp://sitaramc.github.com/gitolite/master-toc.html

Page 34: Node.js Cloud deployment

Thanks!Thanks!