introducing bonsai

Post on 15-Jan-2015

4.354 Views

Category:

Technology

6 Downloads

Preview:

Click to see full reader

DESCRIPTION

Slides from presenting Bonsai at Melbourne Ruby. January

TRANSCRIPT

Ben Schwarz@benschwarzgermanforblack.com

Bonsai builds dynamic web sites that run anywhere.

Low budget, something needed to work, quickly

Shoe horning Ruby in isn’t responsible

staceyapp.com

PHP is hard and icky

“Use the best tools available all the time”

- Me, maybe?

“Fuck all that other shit.”

- Me, paraphrasing Lincoln Stoll

Hierarchy from disk

Less/Sass

{

#Markdown

Suited to image based sites with well defined hierarchies

Ϟ gem install bonsai

Ϟ gem install bonsai

盆栽bonsai, tiny and beautiful

type `bonsai --help` to get started

Successfully installed bonsai-1.1.31 gem installed

Ϟ 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

Install on any mac (10.4+) with one command

Htaccess

Compress CSS and Javascript

Clean URL’s

Deployment

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

ThanksSlides online at slideshare.com/benschwarz

http://tinytree.info

top related