Last active
May 10, 2016 22:28
-
-
Save pramoso/f26c6bfb6f2a69420f1e7019fd0f096e to your computer and use it in GitHub Desktop.
Ubuntu enviroment
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
#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