質問編集履歴

4

環境を編集

2021/01/19 07:59

投稿

akikko
akikko

スコア32

test CHANGED
File without changes
test CHANGED
@@ -68,7 +68,7 @@
68
68
 
69
69
 
70
70
 
71
- **config_enviroments**
71
+ **config_enviroments_development**
72
72
 
73
73
 
74
74
 

3

環境の詳細を追加

2021/01/19 07:58

投稿

akikko
akikko

スコア32

test CHANGED
File without changes
test CHANGED
@@ -64,7 +64,15 @@
64
64
 
65
65
 
66
66
 
67
+ 以下環境設定の詳細です。
68
+
69
+
70
+
67
- ```config_enviroments
71
+ **config_enviroments**
72
+
73
+
74
+
75
+ ```
68
76
 
69
77
  Rails.application.configure do
70
78
 
@@ -218,7 +226,11 @@
218
226
 
219
227
 
220
228
 
221
- ```config_initializers_asetts
229
+ **config_initializers_asetts**
230
+
231
+
232
+
233
+ ```
222
234
 
223
235
  # Be sure to restart your server when you modify this file.
224
236
 

2

環境を追加しました

2021/01/19 07:58

投稿

akikko
akikko

スコア32

test CHANGED
File without changes
test CHANGED
@@ -62,6 +62,200 @@
62
62
 
63
63
 
64
64
 
65
+
66
+
67
+ ```config_enviroments
68
+
69
+ Rails.application.configure do
70
+
71
+ # Settings specified here will take precedence over those in config/application.rb.
72
+
73
+
74
+
75
+ # In the development environment your application's code is reloaded on
76
+
77
+ # every request. This slows down response time but is perfect for development
78
+
79
+ # since you don't have to restart the web server when you make code changes.
80
+
81
+ config.cache_classes = false
82
+
83
+
84
+
85
+ # Do not eager load code on boot.
86
+
87
+ config.eager_load = false
88
+
89
+
90
+
91
+ # Show full error reports.
92
+
93
+ config.consider_all_requests_local = true
94
+
95
+
96
+
97
+ # Enable/disable caching. By default caching is disabled.
98
+
99
+ # Run rails dev:cache to toggle caching.
100
+
101
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
102
+
103
+ config.action_controller.perform_caching = true
104
+
105
+
106
+
107
+ config.cache_store = :memory_store
108
+
109
+ config.public_file_server.headers = {
110
+
111
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
112
+
113
+ }
114
+
115
+ else
116
+
117
+ config.action_controller.perform_caching = false
118
+
119
+
120
+
121
+ config.cache_store = :null_store
122
+
123
+ end
124
+
125
+
126
+
127
+ # Store uploaded files on the local file system (see config/storage.yml for options)
128
+
129
+ config.active_storage.service = :local
130
+
131
+
132
+
133
+
134
+
135
+ #★以下よりgmail想定で変更2019.11.08---------------
136
+
137
+
138
+
139
+ # Don't care if the mailer can't send.
140
+
141
+ config.action_mailer.raise_delivery_errors = true #★falseから変更
142
+
143
+ config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
144
+
145
+ config.action_mailer.delivery_method = :smtp
146
+
147
+ config.action_mailer.smtp_settings = {
148
+
149
+ ####################
150
+
151
+ }
152
+
153
+ #------------------------------------------------
154
+
155
+ config.action_mailer.perform_caching = false
156
+
157
+
158
+
159
+ # Print deprecation notices to the Rails logger.
160
+
161
+ config.active_support.deprecation = :log
162
+
163
+
164
+
165
+ # Raise an error on page load if there are pending migrations.
166
+
167
+ config.active_record.migration_error = :page_load
168
+
169
+
170
+
171
+ # Highlight code that triggered database queries in logs.
172
+
173
+ config.active_record.verbose_query_logs = true
174
+
175
+
176
+
177
+ # Debug mode disables concatenation and preprocessing of assets.
178
+
179
+ # This option may cause significant delays in view rendering with a large
180
+
181
+ # number of complex assets.
182
+
183
+ config.assets.debug = true
184
+
185
+
186
+
187
+ #ユーザーのブラウザでキャッシュが残っていても更新後の画像が反映される
188
+
189
+ config.assets.digest = false
190
+
191
+
192
+
193
+ # Suppress logger output for asset requests.
194
+
195
+ config.assets.quiet = true
196
+
197
+
198
+
199
+ # Raises error for missing translations
200
+
201
+ # config.action_view.raise_on_missing_translations = true
202
+
203
+
204
+
205
+ # Use an evented file watcher to asynchronously detect changes in source code,
206
+
207
+ # routes, locales, etc. This feature depends on the listen gem.
208
+
209
+ # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
210
+
211
+ end
212
+
213
+
214
+
215
+ ```
216
+
217
+
218
+
219
+
220
+
221
+ ```config_initializers_asetts
222
+
223
+ # Be sure to restart your server when you modify this file.
224
+
225
+
226
+
227
+ # Version of your assets, change this if you want to expire all your assets.
228
+
229
+ Rails.application.config.assets.version = '1.0'
230
+
231
+
232
+
233
+ # Add additional assets to the asset load path.
234
+
235
+ # Rails.application.config.assets.paths << Emoji.images_path
236
+
237
+ # Add Yarn node_modules folder to the asset load path.
238
+
239
+ Rails.application.config.assets.paths << Rails.root.join('node_modules')
240
+
241
+
242
+
243
+ # Precompile additional assets.
244
+
245
+ # application.js, application.css, and all non-JS/CSS in the app/assets
246
+
247
+ # folder are already added.
248
+
249
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
250
+
251
+
252
+
253
+ Rails.application.config.assets.precompile += %w( turbolinks )
254
+
255
+ ```
256
+
257
+
258
+
65
259
  書き方や環境の設定(アセットパイプライン?)について何かお知恵がありましたら、教えて頂けると嬉しいです。
66
260
 
67
261
  全然、変更できず大変こまっております・・・。

1

application.scss追加

2021/01/19 07:55

投稿

akikko
akikko

スコア32

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,11 @@
8
8
 
9
9
  変更といっても、コメントアウトの文字を1文字消す
10
10
 
11
- ```ここに言語を入力
11
+ ```
12
+
13
+ application.scss
14
+
15
+
12
16
 
13
17
  before //ローカルの写真をアップさせない
14
18
 
@@ -54,7 +58,7 @@
54
58
 
55
59
 
56
60
 
57
- 上記の下に全体に必要なcssが200行程あります。
61
+ application.scssは、上記の下に全体に必要なcssが200行程あります。
58
62
 
59
63
 
60
64