Last active
February 29, 2020 03:12
-
-
Save mminski/8f65400b674c9d823afb949b8705a7cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
#script for rails dev | |
inotifywait -q -m -e close_write /your/project/folder | | |
while read -r filename event; do | |
killall ruby && `cd /your/project/folder && rails s` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment