Your SlideShare is downloading. ×
Haibu: dev deployment is fast and easy again
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Haibu: dev deployment is fast and easy again

1,414
views

Published on

These slides explains how to setup quicky a private small PaaS with Haibu. …

These slides explains how to setup quicky a private small PaaS with Haibu.

Talk performed @ LyonJS Meetup, April 2013

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,414
On Slideshare
0
From Embeds
0
Number of Embeds
15
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. dev deployment is fast and easy again
  • 2. Node.js is great... but with PHP itwas so easier to deploy my apps...
  • 3. do you know Haibu ?Install and start any Node.js app from its repo on your server made by Nodejitsu
  • 4. installationnpm install haibu -grun serverhaibu
  • 5. deploy your web appcurl -XPOST -sSNT app.tgz localhost:9002/deploy/username/appname
  • 6. nice featuresuse forever to spawn appsfrom a git repo, archive or local folderautomatic port assignationapps isolated through sys users
  • 7. but...no virtualisationpoor documentationnode.js onlyslow evolution
  • 8. node.js client: install, start, stop, update, removehaibu = require "haibu-api"client = new haibu.drone.Client host: "localhost" port: 9002manifest = user: "me" name: "test" repository: branch: "master" type: "git" url: "https://github.com/me/hello.git" scripts: start: "server.js"client.start manifest, (err, result) -> if err then console.log "Error spawning app!" else console.log "Successfully spawned app!"
  • 9. with commanderprogram = require commanderclient = new require(haibu-api).drone.Client ...program .command("install <app>") .description("Install application in haibu") .action (app) -> manifest = ... name: app repository: url: "https://github.com/me/#{app}.git" client.clean manifest, (err, result) -> client.start manifest, (err, result) -> if err then console.log "Install failed" else console.log "run on port #{result.drone.port}"program.parse process.argv
  • 10. coffee my_paas install my-app
  • 11. coffee my_paas install my-appcoffee my_paas uninstall my-app coffee my_paas start my-app coffee my_paas stop my-app coffee my_paas update my-app
  • 12. a talk by...contact@cozycloud.cchttps://blog.cozycloud.cchttps://twitter.com/mycozycloudCrédits photos: dsmis, Ethan AblemanLicense Creative Commons by-3.0