Node.js Cloud deployment

Post on 15-Jan-2015

356 views 2 download

Tags:

description

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

Transcript of Node.js Cloud deployment

Cloud DeploymentCloud DeploymentLess fluff more stuffLess fluff more stuff

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

UX Designer & DeveloperNicholas McClayNicholas McClay

BLAH BLAH CLOUDBLAH BLAH CLOUD

The cloud is likeThe cloud is like

What I wantWhat I want

What I boughtWhat I bought

This presentationThis presentation

UnixUnix

What I wantWhat I want

What I wantWhat I want

+ Custom Hooks+ Custom Hooks

Pick your hosting Pick your hosting providerprovider

Create Security GroupCreate Security Group

Launch Launch

Associate new addressAssociate new address

Make sure permissions are 600Make sure permissions are 600

SSH into serverSSH into server

++

SecuringSecuring

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

++

https://github.com/sitaramc/gitolite

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

Managing ReposManaging Repos

Adding ReposAdding Repos

Adding UsersAdding Users

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

Adding GroupsAdding Groups

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

Enabling hooks in gitoliteEnabling hooks in gitolite

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

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

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

Actually useful hooksActually useful hooks

Repo MirroringRepo Mirroring

Local CloneLocal Clone

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

Thanks!Thanks!