puma-dev replacement for pow and prax

Episode #40 by Teacher's Avatar David Kimura

Summary

Puma-dev is the emotional successor to pow. It provides a quick and easy way to manage apps in development on OS X; supporting web sockets and ssl.
development web server 6:24

Resources

Summary

# bash
curl get.pow.cx/uninstall.sh | sh

# /usr/local/bin/pumad
#!/bin/bash
if [ ! -f Gemfile ]; then
  echo "Are you sure you're in a Ruby on Rails app?"
else
  ln -s "$(pwd)" ~/.puma-dev/"$(basename `pwd`)"
  puma-dev -install
  echo "Your app should be available at http://$(basename `pwd`).dev and https://$(basename `pwd`).dev now!"
fi

# /usr/local/bin/unpumad
rm ~/.puma-dev/"$(basename `pwd`)"

# bash
chmod +x /usr/local/bin/pumad
chmod +x /usr/local/bin/unpumad

# bash
brew install puma/puma/puma-dev
sudo puma-dev -setup
puma-dev -install

To stop all puma-dev apps.

# bash
pkill -USR1 puma-dev