puma-dev replacement for pow and prax

#40 puma-dev replacement for pow and prax
7/31/2016

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.
1
development web server 6:24 min

Resources

puma-dev - https://github.com/puma/puma-dev

Summary

bashcurl 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/unpumadrm ~/.puma-dev/"$(basename `pwd`)"
bashchmod +x /usr/local/bin/pumad
chmod +x /usr/local/bin/unpumad
bashbrew install puma/puma/puma-dev
sudo puma-dev -setup
puma-dev -install

To stop all puma-dev apps.

bashpkill -USR1 puma-dev
635114?v=3&s=64
kobaltz said 11 months ago:

puma-dev now supports the ability to map your application with a helper. This would replace the need to use the pumad script as shown in the video.

puma-dev link [-n name] [dir]

00000000000000000000000000000000?d=mm&f=y&s=64
marklar said 10 months ago:

Thanks for the screencast. Do you know whether puma-dev works with foreman?

635114?v=3&s=64
kobaltz said 10 months ago:

You may not need foreman with puma-dev since it will automatically start up your Rails app on the first request.

00000000000000000000000000000000?d=mm&f=y&s=64
marklar said 10 months ago:

I use my procfile with foreman to start redis and resque, would these automatically start with puma-dev?

635114?v=3&s=64
kobaltz said 10 months ago:

Puma-dev wouldn't automatically start those services. It will just start the Rails app.

00000000000000000000000000000000?d=mm&f=y&s=64
frank004 said 5 months ago:

Im having the same problem Im using procfile with foreman. How can we implement the use of it.

698040?v=3&s=64
blimey85 said 27 days ago:

I got this working fine except I don't get any logging for the actual app that's running. It tells the the app has booted and then nothing.

* Directory for apps: /Users/gary/.puma-dev
* Domains: dev
* DNS Server port: 9253
* HTTP Server port: inherited from launchd
* HTTPS Server port: inherited from launchd
! Puma dev listening on http and https

Without being able to see the logging output it's not usable for me, which sucks because this seems rather nice.

Edit: turnning on debug mode shows minimal logging. Still haven't found how to enable full development logging.

635114?v=3&s=64
kobaltz said 26 days ago:

You should be able to tail the development logs. You should be able to go into your app directory and tail the logs

tail -f log/development.log

After you run the puma dev install, it should not stay in your terminal, it should redirect you back to the command prompt.

698040?v=3&s=64
blimey85 said 26 days ago:

Well I'll be damned. That makes perfect sense. The other log file shows the puma-dev specific stuff and the stuff I need is where you indicated. That's perfect. Thanks for the help! I'm learning a lot from your great videos.

Login to Comment