Skip to content

Instantly share code, notes, and snippets.

@ArthurN
Last active July 2, 2020 07:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArthurN/26b8cdb295bbbdd75f4905e40d47ae9d to your computer and use it in GitHub Desktop.
Save ArthurN/26b8cdb295bbbdd75f4905e40d47ae9d to your computer and use it in GitHub Desktop.
From pow to puma-dev on macOS keeping .dev domains
# Why:
# 1) Chrome 63 (Dec 8) breaks .dev domains by forcing HTTPS: https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/
# 2) Pow is at EOL, superceded by puma-dev (see http://pow.cx/manual, 6 Version History, 0.6.0, Dec 8 2017)
# Uninstall pow
curl get.pow.cx/uninstall.sh | sh
# If you use powder, you can remove it as well
gem uninstall powder
# Go to codebase
cd ~/path/to/codebase
# Install puma itself if you don't already have it
# gem install puma
# or if in Gemfile:
bundle install
# Install puma-dev and configure it correctly for macOS
brew install puma/puma/puma-dev
sudo puma-dev -setup
puma-dev -install
# Link code (assumes you've `cd` into your codebase dir and you want it named the same)
puma-dev link
# If receiving SSL warning on Chrome on macOS Sierra:
# (Source: https://github.com/puma/puma-dev/issues/84)
#
# 1. Open KeyChain Access
# 2. Move puma-dev CA cert from 'login' into System keychain
# 3. Right click and open 'Get Info'
# 4. Under "Trust", set appropriate settings: https://user-images.githubusercontent.com/72493/33744602-a4aec5f0-db77-11e7-842d-fa97b16ee95d.png
# 5. Restart browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment