how to run sinatra application as deamon from command line? He uses thin
ruby app.rb -p 3000 -e production
I do not like to configure it in app.rb itself, I want to deamonize it from the command line.
From https://serverfault.com/a/214186/219822
nohup ruby app.rb -p 3000 -e production >> log/log_file 2>&1 &
I don't know if this is possible with ruby . But this is a simple task with rackup
ruby
rackup
Just add config.ru
require './app' run Sinatra::Application
And with that in place you can run it Daemon
rackup -p 3000 -E production -D
Source: https://habr.com/ru/post/1209432/More articles:The default role provider was not found on IIS 7 with .NET 4 - c #Mac: how to remotely access a server running inside a docker container from other computers? - dockerDefault role provider not found in iis 6 and asp.net mvc 3 - asp.netHow to get the English name of the month from the Jewish calendar in C # - c #Regex for currency number, how can I write it shorter? - regexCustom widget not showing in Visual Composer - wordpressHow to get hostname using Qt? - c ++IIS8.5 Automatically Modifies the Physical Path - Web-ApplicationsFirebase data structure - is Firefeed important? - firebaseLibrary file issues installing Gearman via Cygwin - linuxAll Articles