Haibu: dev deployment is fast and easy again

1,606
-1

Published on

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,606
On Slideshare
0
From Embeds
0
Number of Embeds
15
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Haibu: dev deployment is fast and easy again

  1. 1. dev deployment is fast and easy again
  2. 2. Node.js is great... but with PHP itwas so easier to deploy my apps...
  3. 3. do you know Haibu ?Install and start any Node.js app from its repo on your server made by Nodejitsu
  4. 4. installationnpm install haibu -grun serverhaibu
  5. 5. deploy your web appcurl -XPOST -sSNT app.tgz localhost:9002/deploy/username/appname
  6. 6. nice featuresuse forever to spawn appsfrom a git repo, archive or local folderautomatic port assignationapps isolated through sys users
  7. 7. but...no virtualisationpoor documentationnode.js onlyslow evolution
  8. 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. 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. 10. coffee my_paas install my-app
  11. 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. 12. a talk by...contact@cozycloud.cchttps://blog.cozycloud.cchttps://twitter.com/mycozycloudCrédits photos: dsmis, Ethan AblemanLicense Creative Commons by-3.0
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×