diff options
-rw-r--r-- | _posts/2014-12-19-configure-public-folder-for-sinatra-application.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/_posts/2014-12-19-configure-public-folder-for-sinatra-application.md b/_posts/2014-12-19-configure-public-folder-for-sinatra-application.md new file mode 100644 index 0000000..c494d2e --- /dev/null +++ b/_posts/2014-12-19-configure-public-folder-for-sinatra-application.md @@ -0,0 +1,39 @@ +--- +layout: post +title: "configure public folder for sinatra application" +description: "" +category: +tags: ["sinatra", "webservice"] +--- +{% include JB/setup %} + +Point in your sinata application.rb to public folder if running parallel services by one server (apache, nginx). + +E.G. nginx (available sites): + + server{ + .... + .... + .... + + location/SERVICE1 { + + proxy ... + .... + } + + location/SERVICE2 { + + proxy ... + .... + } + + +application.rb + + require ... + + set :public_folder, 'SERVICE1/public' + + +This is necessary to proper serve files from your applications public folder like images. |