質問編集履歴

1

追記

2018/03/31 15:12

投稿

SNGin
SNGin

スコア16

test CHANGED
File without changes
test CHANGED
@@ -17,3 +17,143 @@
17
17
  何か参考になることを教えて頂きたいです。
18
18
 
19
19
  よろしくお願いします。
20
+
21
+ ```Ruby
22
+
23
+ Rails.application.configure do
24
+
25
+ # Settings specified here will take precedence over those in config/application.rb.
26
+
27
+
28
+
29
+ # In the development environment your application's code is reloaded on
30
+
31
+ # every request. This slows down response time but is perfect for development
32
+
33
+ # since you don't have to restart the web server when you make code changes.
34
+
35
+ config.cache_classes = false
36
+
37
+
38
+
39
+ # Do not eager load code on boot.
40
+
41
+ config.eager_load = false
42
+
43
+
44
+
45
+ # Show full error reports.
46
+
47
+ config.consider_all_requests_local = true
48
+
49
+
50
+
51
+ # Enable/disable caching. By default caching is disabled.
52
+
53
+ if Rails.root.join('tmp/caching-dev.txt').exist?
54
+
55
+ config.action_controller.perform_caching = true
56
+
57
+
58
+
59
+ config.cache_store = :memory_store
60
+
61
+ config.public_file_server.headers = {
62
+
63
+ 'Cache-Control' => 'public, max-age=172800'
64
+
65
+ }
66
+
67
+ else
68
+
69
+ config.action_controller.perform_caching = false
70
+
71
+
72
+
73
+ config.cache_store = :null_store
74
+
75
+ end
76
+
77
+
78
+
79
+ # Don't care if the mailer can't send.
80
+
81
+ config.action_mailer.raise_delivery_errors = false
82
+
83
+
84
+
85
+ config.action_mailer.perform_caching = false
86
+
87
+
88
+
89
+ # Print deprecation notices to the Rails logger.
90
+
91
+ config.active_support.deprecation = :log
92
+
93
+
94
+
95
+ # Raise an error on page load if there are pending migrations.
96
+
97
+ config.active_record.migration_error = :page_load
98
+
99
+
100
+
101
+ # Debug mode disables concatenation and preprocessing of assets.
102
+
103
+ # This option may cause significant delays in view rendering with a large
104
+
105
+ # number of complex assets.
106
+
107
+ config.assets.debug = true
108
+
109
+
110
+
111
+ # Suppress logger output for asset requests.
112
+
113
+ config.assets.quiet = true
114
+
115
+
116
+
117
+ # Raises error for missing translations
118
+
119
+ # config.action_view.raise_on_missing_translations = true
120
+
121
+
122
+
123
+ # Use an evented file watcher to asynchronously detect changes in source code,
124
+
125
+ # routes, locales, etc. This feature depends on the listen gem.
126
+
127
+ config.file_watcher = ActiveSupport::EventedFileUpdateChecker
128
+
129
+
130
+
131
+ config.action_mailer.default_url_options = { host: 'localhost:3000' }
132
+
133
+
134
+
135
+ config.action_mailer.delivery_method = :sendmail
136
+
137
+
138
+
139
+ config.action_mailer.smtp_settings = {
140
+
141
+ :enable_starttls_auto => true,
142
+
143
+ :address => "smtp.gmail.com",
144
+
145
+ :port => 587,
146
+
147
+ :domain => 'smtp.gmail.com',
148
+
149
+ :user_name => "invincible.gnj1875@gmail.com",
150
+
151
+ :password => "Gojs1875",
152
+
153
+ :authentication => :plain,
154
+
155
+ }
156
+
157
+ end
158
+
159
+ ```