ruby - How to run Sinatra in background and then access it later on -


i looking start sinatra in background, stop/reload during tests... far reading has provided 2 solutions run sinatra in background, either forking process or starting in new thread... couldn't figure out how can stop/reload sinatra service within child process (when forked) or thread

some code of doing run in background:

thread.start   sinatraapp.run! end 

or

fork     sinatraapp.run! end 

what want after starting sinatra, able set trigger sinatra/reload

sinatraapp.set params 

but won't because sinatra running in different thread/process

any thoughts?


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -