Skip to content

Instantly share code, notes, and snippets.

@mminski
Last active February 29, 2020 03:12
Show Gist options
  • Save mminski/8f65400b674c9d823afb949b8705a7cd to your computer and use it in GitHub Desktop.
Save mminski/8f65400b674c9d823afb949b8705a7cd to your computer and use it in GitHub Desktop.
#! /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