Created
January 13, 2017 19:13
-
-
Save BrianSigafoos/07b69b9b9fb27336a664c990f0126ba4 to your computer and use it in GitHub Desktop.
pumad-link.sh - from https://www.driftingruby.com/episodes/puma-dev-replacement-for-pow-and-prax
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment