BC Blog

Chase Excellence, Success will Follow

0%

Switching to puma-dev on New MacOS

Since I’m getting a new Mac recently, I have realized that pow is no longer being maitained and lack of several features like SSL support and WebSockets. I think it’s time to switch for a better alternative at this time being.

Getting Puma-Dev on MacOS

Install Puma-Dev

1
$ brew install puma/puma/puma-dev

Setup

1
$ sudo puma-dev -setup
1
2
$ cd /your/app/path
$ puma-dev link

Start Puma-Dev Server

1
2
3
4
5
6
7
$ puma-dev -d localhost

#=> * Directory for apps: /Users/user/.puma-dev
#=> * Domains: localhost
#=> * DNS Server port: 9253
#=> * HTTP Server port: 9280
#=> * HTTPS Server port: 9283

Note: Why using default .dev is an issue

SSL Certificate Issue

If you encounter SSL issue in browers, add the trusted cert in your MacOS

1
security add-trusted-cert -k login.keychain-db ~/Library/Application\ Support/io.puma.dev/cert.pem

Welcome to my other publishing channels