Browse Source

Merge branch 'blee-fix-phoenix' of https://github.com/blee-techempower/FrameworkBenchmarks into 1860

msmith-techempower 9 years ago
parent
commit
db0dba1c28
2 changed files with 17 additions and 2 deletions
  1. 2 2
      frameworks/Elixir/phoenix/config/prod.exs
  2. 15 0
      frameworks/Elixir/phoenix/setup.sh

+ 2 - 2
frameworks/Elixir/phoenix/config/prod.exs

@@ -11,7 +11,7 @@ config :hello, Hello.Repo,
   username: "benchmarkdbuser",
   password: "benchmarkdbpass",
   database: "hello_world",
-  hostname: "192.168.56.101",
+  hostname: "localhost",
   pool_size: 256
 
 # ## SSL Support
@@ -28,7 +28,7 @@ config :hello, Hello.Repo,
 # Where those two env variables point to a file on
 # disk for the key and cert.
 
-config :logger, level: :error
+config :logger, level: :info
 
 # ## Using releases
 #

+ 15 - 0
frameworks/Elixir/phoenix/setup.sh

@@ -2,6 +2,21 @@
 
 fw_depends elixir
 
+# 
+# Caution: "line 20 has flaw."
+#
+#   Below sed command will cause another travis-ci test failing 
+#   if a person is executed local test. I think that line is original author's mistake.
+#   The logic is correct, but below command will make permanent change
+#   to 'config/proud.exs'. For this reason, if a tester of this framework is 
+#   going to execute this on local machine, then push this to remote
+#   it will fail travis-ci test.
+#
+#   For now, I keep this original code and leave this comment. 
+#   I will fix this problem later with better solution.
+#
+#   [email protected]
+#
 sed -i 's|localhost|'${DBHOST}'|g' config/prod.exs
 
 rm -rf _build deps