質問編集履歴

3

問題はCSSにあった

2020/11/17 06:07

投稿

yutaro_0529
yutaro_0529

スコア12

test CHANGED
File without changes
test CHANGED
@@ -100,88 +100,276 @@
100
100
 
101
101
 
102
102
 
103
+ ```stlye.css
104
+
105
+ @ -445,11 +445,11 @@ i {
106
+
107
+ transition-timing-function: ease-in;
108
+
109
+ }
110
+
111
+
112
+
113
+ /* .button {
114
+
115
+ .button {
116
+
117
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.05) 1%, rgba(0, 0, 0, 0.2) 100%);
118
+
119
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.05) 1%, rgba(0, 0, 0, 0.2) 100%);
120
+
121
+ background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1%, rgba(0, 0, 0, 0.2) 100%);
122
+
123
+ } */
124
+
125
+ }
126
+
127
+
128
+
129
+ ul {
130
+
131
+ margin: 0;
132
+
133
+ @ -648,16 +648,9 @@ body {
134
+
135
+ h1,
136
+
137
+ h2,
138
+
139
+ h3,
140
+
141
+
142
+
143
+
144
+
145
+ h4,
146
+
147
+ body {
148
+
149
+ text-align: center;
150
+
151
+ color: #666;
152
+
153
+ font-size: 18px;
154
+
155
+ }
156
+
157
+
158
+
159
+
160
+
161
+ h5,
162
+
163
+ h6,
164
+
165
+ body {
166
+
167
+ line-height: 1.57;
168
+
169
+ letter-spacing: 0.15em;
170
+
171
+ @ -665,26 +658,8 @@ body {
172
+
173
+ color: #666;
174
+
175
+ font-family: 'Unica One', "Avenir", "游ゴシック", "YuGothic", "ヒラギノ角ゴ Pro W6", "HIragino Kaku Gothic Pro W6", "HIragino Kaku Gothic Pro", Osaka, Meiryo, "メイリオ", "MS Pゴシック", "MS P Gothic", sans-serif;
176
+
177
+ margin: 0;
178
+
179
+ text-align: center;
180
+
181
+ }
182
+
183
+
184
+
185
+ h5,
186
+
187
+ body {
188
+
189
+ font-size: px;
190
+
191
+ color: #666;
192
+
193
+
194
+
195
+ margin: 0;
196
+
197
+ text-align: center;
198
+
199
+ }
200
+
201
+
202
+
203
+
204
+
205
+ h6,
206
+
207
+ body {
208
+
209
+ margin : 50px 100px;
210
+
211
+ text-align: left;
212
+
213
+ }
214
+
215
+
216
+
217
+
218
+
219
+ a {
220
+
221
+ text-decoration: none;
222
+
223
+ color: #666;
224
+
225
+ @ -707,9 +682,9 @@ div.contents.row div.content_post p {
226
+
227
+ font-size: 2em !important;
228
+
229
+ }
230
+
231
+
232
+
233
+ /* ::selection {
234
+
235
+ ::selection {
236
+
237
+ background: #D8D8D8;
238
+
239
+ } */
240
+
241
+ }
242
+
243
+
244
+
245
+ .transition,
246
+
247
+ a,
248
+
249
+ @ -751,7 +726,7 @@ header.header div.header__bar.row div.grid-6 a.post:hover {
250
+
251
+ }
252
+
253
+
254
+
255
+ .title--big {
256
+
257
+ font-size: 2.5em;
258
+
259
+ font-size: 1.5em;
260
+
261
+ font-weight: bold;
262
+
263
+ }
264
+
265
+
266
+
267
+ @ -847,10 +822,10 @@ header.header .user_nav ul li a {
268
+
269
+ border-bottom: 1px solid #d8d8d8;
270
+
271
+ }
272
+
273
+
274
+
275
+ /* .form {
276
+
277
+ .form {
278
+
279
+ background: url(https://dl.dropboxusercontent.com/u/5840617/DeathtoStock_Wired3.jpg);
280
+
281
+ background-size: cover;
282
+
283
+ } */
284
+
285
+ }
286
+
287
+
288
+
289
+ .form .contents {
290
+
291
+ position: absolute;
292
+
293
+ @ -885,16 +860,14 @@ div.contents.row .new_user {
294
+
295
+
296
+
297
+ div.contents.row div.content_post {
298
+
299
+ margin: 20px 0;
300
+
301
+ display: flex;
302
+
303
+ justify-content: center;
304
+
305
+ align-items: center;
306
+
307
+ padding: 30px;
308
+
309
+ position: relative;
310
+
311
+ height: 400px;
312
+
313
+ color: #fff;
314
+
315
+ /* background-size: cover;
316
+
317
+ background-position: center center; */
318
+
319
+ background-size: cover;
320
+
321
+ background-position: center center;
322
+
323
+ border-radius: 3px;
324
+
325
+ /* box-shadow: 0 0 10px rgba(41, 41, 41, 0.2); */
326
+
327
+ box-shadow: 0 0 10px rgba(41, 41, 41, 0.2);
328
+
329
+ }
330
+
331
+
332
+
333
+ div.contents.row div.content_post:after {
334
+
335
+ @ -1091,17 +1064,4 @@ footer p {
336
+
337
+ /* object-fit: contain; */
338
+
339
+ /* background: cover; */
340
+
341
+ max-height: 100%;
342
+
343
+ }
344
+
345
+
346
+
347
+ .a {
348
+
349
+ font-size: 3em;
350
+
351
+ letter-spacing: -2px;
352
+
353
+ margin-bottom: 30px;
354
+
355
+ text-align: center;
356
+
357
+ }
358
+
359
+
360
+
361
+ .p{
362
+
363
+ font-size: 1.1em;
364
+
365
+ line-height: 1.7em;
366
+
367
+ margin: 0 0 10px;
368
+
369
+
370
+
103
371
  ```
104
372
 
105
- [ec2-user@ip-172-31-45-251 nostalgia]$ RAILS_SERVE_STATIC_FILES=1 unicorn_rails -c config/unicorn.rb -E production -D
106
-
107
- Traceback (most recent call last):
108
-
109
- 10: from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `<main>'
110
-
111
- 9: from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `load'
112
-
113
- 8: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
114
-
115
- 7: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `new'
116
-
117
- 6: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `initialize'
118
-
119
- 5: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `new'
120
-
121
- 4: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:77:in `initialize'
122
-
123
- 3: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:84:in `reload'
124
-
125
- 2: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:84:in `instance_eval'
126
-
127
- 1: from config/unicorn.rb:8:in `reload'
128
-
129
- /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:592:in `working_directory': config_file=config/unicorn.rb would not be accessible in working_directory=/var/www/current (ArgumentError)
130
-
131
- master failed to start, check stderr log for details
132
-
133
-
134
-
135
- [ec2-user@ip-172-31-45-251 ~]$ ps aux | grep unicorn
136
-
137
- ec2-user 26645 0.0 9.3 455140 94152 ? Sl 07:45 0:01 unicorn master -c /var/www/nostalgia/current/config/unicorn.rb -E deployment -D
138
-
139
- ec2-user 26696 0.0 9.0 456280 91096 ? Sl 07:45 0:00 unicorn worker[0] -c /var/www/nostalgia/current/config/unicorn.rb -E deployment -D
140
-
141
- ec2-user 27277 0.0 0.0 119436 964 pts/2 S+ 08:10 0:00 grep --color=auto unicorn
142
-
143
- [ec2-user@ip-172-31-45-251 ~]$ kill 26645
144
-
145
- [ec2-user@ip-172-31-45-251 ~]$ ps aux | grep unicorn
146
-
147
- ec2-user 27281 0.0 0.0 119436 912 pts/2 S+ 08:11 0:00 grep --color=auto unicorn
148
-
149
- [ec2-user@ip-172-31-45-251 ~]$ cd /var/www/nostalgia
150
-
151
- [ec2-user@ip-172-31-45-251 nostalgia]$ RAILS_SERVE_STATIC_FILES=1 unicorn_rails -c config/unicorn.rb -E production -D
152
-
153
- Traceback (most recent
154
-
155
- call last):
156
-
157
- 10: from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `<main>'
158
-
159
- 9: from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `load'
160
-
161
- 8: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
162
-
163
- 7: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `new'
164
-
165
- 6: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `initialize'
166
-
167
- 5: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `new'
168
-
169
- 4: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:77:in `initialize'
170
-
171
- 3: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:84:in `reload'
172
-
173
- 2: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:84:in `instance_eval'
174
-
175
- 1: from config/unicorn.rb:8:in `reload'
176
-
177
- /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:592:in `working_directory': config_file=config/unicorn.rb would not be accessible in working_directory=/var/www/current (ArgumentError)
178
-
179
- master failed to start, check stderr log for details
180
-
181
- [ec2-user@ip-172-31-45-251 nostalgia]$ sudo less /var/log/nginx/error.log
182
-
183
- ```
184
-
185
373
 
186
374
 
187
375
  ### 試したこと

2

タイトル修正

2020/11/17 06:07

投稿

yutaro_0529
yutaro_0529

スコア12

test CHANGED
@@ -1 +1 @@
1
- raios自動デプロイ後にCSSが反映されない時の対処法を実践してみたがエラーが発生しました。
1
+ 自動デプロイ後にCSSが反映されない時の対処法を実践してみたがエラーが発生しました。
test CHANGED
File without changes

1

RAILS_SERVE_STATIC_FILES=1 unicorn_rails -c config/unicorn.rb -E production -Dを実行

2020/11/16 11:44

投稿

yutaro_0529
yutaro_0529

スコア12

test CHANGED
@@ -1 +1 @@
1
- 自動デプロイ後にCSSが反映されない時の対処法を実践してみたがエラーが発生しました。
1
+ raios自動デプロイ後にCSSが反映されない時の対処法を実践してみたがエラーが発生しました。
test CHANGED
@@ -86,24 +86,6 @@
86
86
 
87
87
  2020/11/16 07:42:20 [error] 29011#0: *584 open() "/var/www/nostalgia/public/assets/application-bd27d8a19976d1f442130770741a52ef0e54af51b09d239d898a2c593a0957ab.css" failed (2: No su
88
88
 
89
- ch file or directory), client: 103.5.140.149, server: 54.248.24.69, request: "GET /assets/application-bd27d8a19976d1f442130770741a52ef0e54af51b09d239d898a2c593a0957ab.css HTTP/1.1",
90
-
91
- host: "54.248.24.69", referrer: "http://54.248.24.69/"
92
-
93
- 2020/11/16 07:42:30 [error] 29011#0: *585 open() "/var/www/nostalgia/public/assets/application-bd27d8a19976d1f442130770741a52ef0e54af51b09d239d898a2c593a0957ab.css" failed (2: No su
94
-
95
- ch file or directory), client: 103.5.140.149, server: 54.248.24.69, request: "GET /assets/application-bd27d8a19976d1f442130770741a52ef0e54af51b09d239d898a2c593a0957ab.css HTTP/1.1",
96
-
97
- host: "54.248.24.69", referrer: "http://54.248.24.69/"
98
-
99
- 2020/11/16 07:42:37 [error] 29011#0: *584 open() "/var/www/nostalgia/public/assets/application-bd27d8a19976d1f442130770741a52ef0e54af51b09d239d898a2c593a0957ab.css" failed (2: No su
100
-
101
- ch file or directory), client: 103.5.140.149, server: 54.248.24.69, request: "GET /assets/application-bd27d8a19976d1f442130770741a52ef0e54af51b09d239d898a2c593a0957ab.css HTTP/1.1",
102
-
103
- host: "54.248.24.69", referrer: "http://54.248.24.69/items/search?keyword=&commit=%E6%A4%9C%E7%B4%A2"
104
-
105
- 2020/11/16 07:45:28 [error] 29011#0: *617 open()
106
-
107
89
 
108
90
 
109
91
  多過ぎたので残りはスクリーンショット
@@ -118,7 +100,37 @@
118
100
 
119
101
 
120
102
 
121
- ```ここに言語名を入力
103
+ ```
104
+
105
+ [ec2-user@ip-172-31-45-251 nostalgia]$ RAILS_SERVE_STATIC_FILES=1 unicorn_rails -c config/unicorn.rb -E production -D
106
+
107
+ Traceback (most recent call last):
108
+
109
+ 10: from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `<main>'
110
+
111
+ 9: from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `load'
112
+
113
+ 8: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
114
+
115
+ 7: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `new'
116
+
117
+ 6: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `initialize'
118
+
119
+ 5: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `new'
120
+
121
+ 4: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:77:in `initialize'
122
+
123
+ 3: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:84:in `reload'
124
+
125
+ 2: from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:84:in `instance_eval'
126
+
127
+ 1: from config/unicorn.rb:8:in `reload'
128
+
129
+ /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:592:in `working_directory': config_file=config/unicorn.rb would not be accessible in working_directory=/var/www/current (ArgumentError)
130
+
131
+ master failed to start, check stderr log for details
132
+
133
+
122
134
 
123
135
  [ec2-user@ip-172-31-45-251 ~]$ ps aux | grep unicorn
124
136
 
@@ -138,7 +150,9 @@
138
150
 
139
151
  [ec2-user@ip-172-31-45-251 nostalgia]$ RAILS_SERVE_STATIC_FILES=1 unicorn_rails -c config/unicorn.rb -E production -D
140
152
 
141
- Traceback (most recent call last):
153
+ Traceback (most recent
154
+
155
+ call last):
142
156
 
143
157
  10: from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `<main>'
144
158