質問編集履歴

2

nginx.confを訂正

2019/07/22 14:53

投稿

decatail
decatail

スコア41

test CHANGED
File without changes
test CHANGED
@@ -192,7 +192,7 @@
192
192
 
193
193
  upstream unicorn_server {
194
194
 
195
- server unix:/path/to/app/tmp/sockets/unicorn.sock;
195
+ server unix:/var/www/html/tmp/sockets/unicorn.sock;
196
196
 
197
197
  fail_timeout=0;
198
198
 

1

nginx.confを訂正

2019/07/22 14:53

投稿

decatail
decatail

スコア41

test CHANGED
File without changes
test CHANGED
@@ -192,7 +192,7 @@
192
192
 
193
193
  upstream unicorn_server {
194
194
 
195
- server unix:/path/to/app/tmp/sockets/unicorn.sock
195
+ server unix:/path/to/app/tmp/sockets/unicorn.sock;
196
196
 
197
197
  fail_timeout=0;
198
198
 
@@ -202,13 +202,9 @@
202
202
 
203
203
  server {
204
204
 
205
- # あなたのドメインに置き換えてください
206
-
207
- server_name my-sinatra-app.com;
208
-
209
205
  # Sinatraのpublicディレクトリの絶対パスを指定します
210
206
 
211
- root /path/to/app/public;
207
+ root /var/www/html/public;
212
208
 
213
209
  # リクエストが通るポート番号を指定します
214
210