POWering Through Rails/Rack Application Development

  • 1,649 views
Uploaded on

By Jeremy Ebler …

By Jeremy Ebler
Jaguar Design Studio
January 2013 Cave Lunch

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,649
On Slideshare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
0
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. POWering through Rails/Rack Application Development Saving the world, one command at a time™Jeremy Ebler © 2013
  • 2. POWDeveloping sites has never been easier!● http://pow.cx/Use Pow to painlessly develop:● Ruby on Rails● Any Rack Application● Static Sites (Nanoc/Stasis)
  • 3. What is POW?Pow prevails over the forces of evil.● Convention trumps configuration.● No maintenance required.● Tame multiple Rubies.● Integrated with OS X.
  • 4. How to POW?Install with a simple command:$ curl get.pow.cx | shSymlink your app into ~/.powVisit http://#{symlink}.dev/ in a web browser.Nothing to start, no terminal windows, justbrowse and go!
  • 5. Can it be Easier?Actually, yes!$ gem install powder$ powder link [name]$ powder openhttps://github.com/rodreegez/powder
  • 6. POW rubygems cacheBundle faster than a speeding SSD! (or 5400rpm HDD…)Setup the Cache$ git clone git://github.com/akitaonrails/rubygems_proxy.git rubygems$ cd rubygems; powder link~/.bash_profile$ export LOCALGEMS=http://rubygems.devGemfile$ source ENV[LOCALGEMS] || https://rubygems.org
  • 7. No more bundle exechttps://github.com/mpapis/rubygems-bundlerSimply,$ gem install bundler rubygems-bundler$ gem regenerate_binstubsIt modifies gem wrappers shebang to loadruby_noexec_wrapper. Then, when you run gembinaries, it takes a look at your working directory, andevery directory above it until it can find a Gemfile. If theexecutable is present in your Gemfile, it switches tousing that Gemfile instead (via Bundle.setup).