Skip to content

Instantly share code, notes, and snippets.

@pramoso
Last active May 10, 2016 22:28
Show Gist options
  • Save pramoso/f26c6bfb6f2a69420f1e7019fd0f096e to your computer and use it in GitHub Desktop.
Save pramoso/f26c6bfb6f2a69420f1e7019fd0f096e to your computer and use it in GitHub Desktop.
Ubuntu enviroment
#Since Ruby will run in the console you may want to use screen to keep the app running in the background once you disconnect.
#To do this first install screen
apt-get install screen
#Then start a new screen session
screen -S "My App"
#and run your app within the session
ruby myapp.rb
#Opt: Kill all ruby process
killall ruby
#Opt: You can quit a screen without attaching to it. First, find its session and then quit it.
screen -ls
screen -X -S [session # you want to kill] quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment