minimum_viable_product 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minimum_viable_product/engine.rb +6 -9
- data/lib/minimum_viable_product/version.rb +1 -1
- 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: 83c6f59eeb9497329d36939a320eb6aaf1c0f12f
|
4
|
+
data.tar.gz: 8a9f1356111d079c839422be61f25d5ed3d08735
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccd2b2bc84ef5d7e82734ce9236153ed1ab570041a74a62c5b2d9511967a334f7aef159c1004ddccb8a1f501ef59a78570fc1d81886cd93cf7c59a104de414fc
|
7
|
+
data.tar.gz: 23b73cddfa6cf529b53bbced8bb95be9efe779375f99fc067c9235cd29e782920a556413e57690e2bc99a35d70d4a40361f9206d7bb0bd0292c866bcde201752
|
@@ -27,14 +27,11 @@ module MinimumViableProduct
|
|
27
27
|
config.autoload_paths << "#{Rails.root}/app"
|
28
28
|
config.autoload_paths << "#{Rails.root}/lib"
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
"3000"
|
37
|
-
end
|
38
|
-
routes.default_url_options = { host: _host, port: _port, protocol: _prot }
|
30
|
+
_options = {}
|
31
|
+
_options[:protocol] = ENV['HOST_PROTOCOL'] || (ENV['FORCE_SSL'].to_b ? "https" : "http")
|
32
|
+
_options[:host] = ENV['HOST_DOMAIN']
|
33
|
+
_options[:port] = ENV['HOST_PORT']
|
34
|
+
|
35
|
+
routes.default_url_options = _options
|
39
36
|
end
|
40
37
|
end
|