minimum_viable_product 0.0.33 → 0.0.34
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 +7 -2
- 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: 7a7ca98d808e0c17bb5e2ed76b612110118f865a
|
4
|
+
data.tar.gz: 59a89a93fc4ff6ed92ddb8d1dd1eb8ffb31a4810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ea76825f20a9368539fa6b83a105ee98822ae333f9eb70be740d2c65d5810fd47c36c727520e4c9ac1c879fca20829c4706b9fef16a793139f8776ca77856c5
|
7
|
+
data.tar.gz: 79a7a3e2819b1e6bf935d0b3437ab813db250a33ff4bd381151ddfa6665ccca3fa7ee685f3f33156f3e40a3bac18b041b4649ab9224997076ac54d8ae9569889
|
@@ -27,9 +27,14 @@ module MinimumViableProduct
|
|
27
27
|
config.autoload_paths << "#{Rails.root}/app"
|
28
28
|
config.autoload_paths << "#{Rails.root}/lib"
|
29
29
|
|
30
|
-
_prot = ENV['HOST_PROTOCOL'] || "http"
|
30
|
+
_prot = ENV['HOST_PROTOCOL'] || (ENV['FORCE_SSL'].to_b ? "https" : "http")
|
31
31
|
_host = ENV['HOST_DOMAIN'] || "localhost"
|
32
|
-
_port = ENV['HOST_PORT'] ||
|
32
|
+
_port = ENV['HOST_PORT'] || case Rails.env
|
33
|
+
when "production"
|
34
|
+
"80"
|
35
|
+
else
|
36
|
+
"3000"
|
37
|
+
end
|
33
38
|
routes.default_url_options = { host: _host, port: _port, protocol: _prot }
|
34
39
|
end
|
35
40
|
end
|