Last active
July 2, 2020 07:29
-
-
Save ArthurN/26b8cdb295bbbdd75f4905e40d47ae9d to your computer and use it in GitHub Desktop.
From pow to puma-dev on macOS keeping .dev domains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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