onotole 1.1.20 → 1.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onotole/default_scripts.rb +3 -0
- data/lib/onotole/helpers.rb +1 -1
- data/lib/onotole/version.rb +1 -1
- data/templates/dotenv.erb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f94643204e7f258863146131d37189559478b7d
|
4
|
+
data.tar.gz: 3fd249dbd56ae6804139e806d6d7722442b15466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81fc447f2e8f0fb2071499a7e8109ec093134adfb15e86f3bd9239ddc51fad7f52a87b07057708fcbc8542208feabedfe82462e0126cbaac20087ebdf7681753
|
7
|
+
data.tar.gz: fc74b38b32a89097265b9f0ea9996ca7ea6afc05a82eccab09b472c3312f2dc8a1b59e53d99b4612a1a44449036eb057ec34d8ef84031c81b5307f05a4ff6383
|
@@ -19,7 +19,10 @@ module Onotole
|
|
19
19
|
config = <<-RUBY
|
20
20
|
|
21
21
|
# Enable deflate / gzip compression of controller-generated responses
|
22
|
+
# more info https://robots.thoughtbot.com/content-compression-with-rack-deflater
|
23
|
+
# rack-mini-profiler does not work with this option
|
22
24
|
config.middleware.use Rack::Deflater
|
25
|
+
|
23
26
|
RUBY
|
24
27
|
|
25
28
|
inject_into_file(
|
data/lib/onotole/helpers.rb
CHANGED
@@ -54,7 +54,7 @@ module Onotole
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def serve_static_files_line
|
57
|
-
"config.serve_static_files = ENV
|
57
|
+
"config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?\n"
|
58
58
|
end
|
59
59
|
|
60
60
|
def add_gems_from_args
|
data/lib/onotole/version.rb
CHANGED
data/templates/dotenv.erb
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
<%= "#{app_name.upcase}_ASSET_HOST=localhost:3000" %>
|
3
3
|
<%= "#{app_name.upcase}_APPLICATION_HOST=localhost:3000" %>
|
4
4
|
<%= "#{app_name.upcase}_PORT=3000" %>
|
5
|
-
RACK_ENV=development
|
6
5
|
<%= "#{app_name.upcase}_SECRET_KEY_BASE=development_secret" %>
|
7
|
-
EXECJS_RUNTIME=Node
|
8
6
|
<%= "#{app_name.upcase}_SMTP_ADDRESS=smtp.example.com" %>
|
9
7
|
<%= "#{app_name.upcase}_SMTP_DOMAIN=example.com" %>
|
10
8
|
<%= "#{app_name.upcase}_SMTP_PORT=587" %>
|
@@ -12,6 +10,8 @@ EXECJS_RUNTIME=Node
|
|
12
10
|
<%= "#{app_name.upcase}_SMTP_USERNAME=username" %>
|
13
11
|
<%= "#{app_name.upcase}_WEB_CONCURRENCY=1" %>
|
14
12
|
<%= "#{app_name.upcase}_MAX_THREADS=16" %>
|
15
|
-
<%= "#{app_name.upcase}
|
16
|
-
|
17
|
-
|
13
|
+
<%= "#{app_name.upcase}_COVERAGE=false" %> # simplecov flag
|
14
|
+
RACK_ENV=development
|
15
|
+
EXECJS_RUNTIME=Node
|
16
|
+
RAILS_SERVE_STATIC_FILES=true
|
17
|
+
DEFER_GC=1 # Garbage collector flag. Used in RSpec
|