blob: c494d2e629b410984d41ecc869434913506e33f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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.
|