-1

I have a rack application running in the following way:

$: << File.expand_path("../lib",__FILE__)

require '<my_app>/api'

STATIC_DIR = File.expand_path("../public/",__FILE__)

run Rack::Cascade.new [<my_app>::API, Rack::Directory.new(STATIC_DIR)]

and it runs with puma like this:

exec rackup -s Puma -p $PORT

My app is some kind of a simple API written with ruby's grape rest api. my question is, where do all the application output goes ? I mean, all the GET requests for example, i am pretty new to this, and was not able to find it.

4

1 回答 1

1

Use this:

exec rackup -s Puma -p $PORT >> $LOG
于 2014-06-30T14:49:13.357 回答