introducing bonsai

27

Upload: ben-schwarz

Post on 15-Jan-2015

4.354 views

Category:

Technology


6 download

DESCRIPTION

Slides from presenting Bonsai at Melbourne Ruby. January

TRANSCRIPT

Page 1: Introducing Bonsai
Page 3: Introducing Bonsai

Bonsai builds dynamic web sites that run anywhere.

Page 4: Introducing Bonsai

Low budget, something needed to work, quickly

Page 5: Introducing Bonsai

Shoe horning Ruby in isn’t responsible

Page 6: Introducing Bonsai

staceyapp.com

Page 7: Introducing Bonsai

PHP is hard and icky

Page 8: Introducing Bonsai

“Use the best tools available all the time”

- Me, maybe?

Page 9: Introducing Bonsai

“Fuck all that other shit.”

- Me, paraphrasing Lincoln Stoll

Page 10: Introducing Bonsai
Page 11: Introducing Bonsai

Hierarchy from disk

Page 12: Introducing Bonsai

Less/Sass

Page 13: Introducing Bonsai

{

Page 14: Introducing Bonsai

#Markdown

Page 15: Introducing Bonsai

Suited to image based sites with well defined hierarchies

Page 16: Introducing Bonsai
Page 17: Introducing Bonsai

Ϟ gem install bonsai

Page 18: Introducing Bonsai

Ϟ gem install bonsai

盆栽bonsai, tiny and beautiful

type `bonsai --help` to get started

Successfully installed bonsai-1.1.31 gem installed

Page 19: Introducing Bonsai

Ϟ bonsai --help

盆栽 bonsai, tiny and beautiful -p, --plant [NAME] creates the directory structure for your site -c, --cultivate run a local web server and process your files on save -r, --repot export your site to /Users/ben/output -v, --version --console start an IRB console session giving

you access to your bonsai environment

Page 20: Introducing Bonsai
Page 21: Introducing Bonsai

Install on any mac (10.4+) with one command

Page 22: Introducing Bonsai

Htaccess

Page 23: Introducing Bonsai

Compress CSS and Javascript

Page 24: Introducing Bonsai

Clean URL’s

Page 25: Introducing Bonsai

Deployment

Page 26: Introducing Bonsai

rsync -ave ssh ./output/ tinytree.info:/var/www/tinytree.info

Page 27: Introducing Bonsai

ThanksSlides online at slideshare.com/benschwarz

http://tinytree.info