質問編集履歴
2
config.ruの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -398,6 +398,28 @@
|
|
398
398
|
|
399
399
|
|
400
400
|
|
401
|
+
`config.ru`です
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
```
|
406
|
+
|
407
|
+
# This file is used by Rack-based servers to start the application.
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
require_relative 'config/environment'
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
run Rails.application
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
```
|
420
|
+
|
421
|
+
|
422
|
+
|
401
423
|
|
402
424
|
|
403
425
|
エラーの意味だけでも教えていただけたら幸いです。。。
|
1
/etc/nginx/conf.d/Stelle.confの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -340,4 +340,64 @@
|
|
340
340
|
|
341
341
|
|
342
342
|
|
343
|
+
本命である`/etc/nginx/conf.d/Stelle.conf`です
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
```
|
348
|
+
|
349
|
+
error_log /var/www/rails/stelle/current/log/nginx.error.log;
|
350
|
+
|
351
|
+
access_log /var/www/rails/stelle/current/log/nginx.access.log;
|
352
|
+
|
353
|
+
client_max_body_size 2G;
|
354
|
+
|
355
|
+
upstream app_server {
|
356
|
+
|
357
|
+
server unix:/var/www/rails/stelle/current/tmp/sockets/.unicorn.sock fail_timeout=0;
|
358
|
+
|
359
|
+
}
|
360
|
+
|
361
|
+
server {
|
362
|
+
|
363
|
+
listen 80;
|
364
|
+
|
365
|
+
server_name 3.xxx.xxx.xx;
|
366
|
+
|
367
|
+
keepalive_timeout 5;
|
368
|
+
|
369
|
+
root /var/www/rails/stelle/current/public;
|
370
|
+
|
371
|
+
try_files $uri/index.html $uri.html $uri @app;
|
372
|
+
|
373
|
+
location @app {
|
374
|
+
|
375
|
+
# HTTP headers
|
376
|
+
|
377
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
378
|
+
|
379
|
+
proxy_set_header Host $http_host;
|
380
|
+
|
381
|
+
proxy_redirect off;
|
382
|
+
|
383
|
+
proxy_pass http://app_server;
|
384
|
+
|
385
|
+
}
|
386
|
+
|
387
|
+
error_page 500 502 503 504 /500.html;
|
388
|
+
|
389
|
+
location = /500.html {
|
390
|
+
|
391
|
+
root /var/www/rails/stelle/current/public;
|
392
|
+
|
393
|
+
}
|
394
|
+
|
395
|
+
}
|
396
|
+
|
397
|
+
```
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
343
403
|
エラーの意味だけでも教えていただけたら幸いです。。。
|