Skip to content

Instantly share code, notes, and snippets.

@leandronsp
Last active March 20, 2019 16:51
Show Gist options
  • Save leandronsp/3c1f52aa56944e8aadafd0bb90734235 to your computer and use it in GitHub Desktop.
Save leandronsp/3c1f52aa56944e8aadafd0bb90734235 to your computer and use it in GitHub Desktop.
Start Rails server (sudo)
fdxrails() {
kill -9 $(lsof -i tcp:3001 | grep ruby | awk '{print $2}')
./bin/spring rails s -p 3001
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment