Browse Source

updated db url, port, and file list

Yogthos 9 years ago
parent
commit
d8df16e878

+ 2 - 2
frameworks/Clojure/luminus/benchmark_config.json

@@ -9,7 +9,7 @@
       "fortune_url": "/fortunes",
       "update_url": "/updates/",
       "plaintext_url": "/plaintext",
-      "port": 8080,
+      "port": 3000,
       "approach": "Realistic",
       "classification": "Platform",
       "database": "MySQL",
@@ -22,7 +22,7 @@
       "database_os": "Linux",
       "display_name": "luminus",
       "notes": "",
-      "versus": ""
+      "versus": "servlet"
     }
   }]
 }

+ 1 - 1
frameworks/Clojure/luminus/hello/src/hello/db/core.clj

@@ -9,7 +9,7 @@
             PreparedStatement]))
 
 (def pool-spec
-  {:jdbc-uri   "jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
+  {:jdbc-uri   "//127.0.0.1:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true"
    :datasource-classname "com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
    :username   "benchmarkdbuser"
    :password   "benchmarkdbpass"

+ 2 - 2
frameworks/Clojure/luminus/setup.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-fw_depends java7 resin leiningen 
+fw_depends java7 resin leiningen
 
 # Update db host in the source file
 sed -i 's|:subname "//.*:3306|:subname "//'"${DBHOST}"':3306|g' hello/src/hello/db/core.clj
@@ -8,6 +8,6 @@ sed -i 's|:subname "//.*:3306|:subname "//'"${DBHOST}"':3306|g' hello/src/hello/
 cd hello
 lein clean
 rm -rf target
-# pack all dependencies into a single jar: target/http-kit-standalone.jar
+# pack all dependencies into a single jar: target/hello.jar
 lein uberjar
 java -server -jar target/hello.jar  &

+ 31 - 31
frameworks/Clojure/luminus/source_code

@@ -1,32 +1,32 @@
-./luminus/hello/Procfile
-./luminus/hello/README.md
-./luminus/hello/project.clj
-./luminus/hello/env/
-./luminus/hello/env/dev/clj
-./luminus/hello/env/dev/clj/hello
-./luminus/hello/env/dev/clj/hello/repl.clj
-./luminus/hello/resources/
-./luminus/hello/resources/public
-./luminus/hello/resources/public/css
-./luminus/hello/resources/public/css/screen.css
-./luminus/hello/resources/sql
-./luminus/hello/resources/sql/queries.sql
-./luminus/hello//resources/templates
-./luminus/hello//resources/templates/base.html
-./luminus/hello//resources/templates/home.html
-./luminus/hello/src/
-./luminus/hello/src/hello
-./luminus/hello/src/hello/core.clj
-./luminus/hello/src/hello/handler.clj
-./luminus/hello/src/hello/layout.clj
-./luminus/hello/src/hello/middleware.clj
-./luminus/hello/src/hello/session.clj
-./luminus/hello/src/hello/db
-./luminus/hello/src/hello/db/core.clj
-./luminus/hello/src/hello/routes
-./luminus/hello/src/hello/routes/home.clj
-./luminus/hello/test/
-./luminus/hello/test/hello
-./luminus/hello/test/hello/test
-./luminus/hello/test/hello/test/handler.clj
+./hello/Procfile
+./hello/README.md
+./hello/env/dev/clj/hello
+./hello/env/dev/clj/hello/config.clj
+./hello/env/dev/clj/hello/dev_middleware.clj
+./hello/env/prod/clj/hello
+./hello/env/prod/clj/hello/config.clj
+./hello/profiles.clj
+./hello/project.clj
+./hello/resources/docs/docs.md
+./hello/resources/log4j.properties
+./hello/resources/migrations/20160114154818-add-users-table.down.sql
+./hello/resources/migrations/20160114154818-add-users-table.up.sql
+./hello/resources/public/css/screen.css
+./hello/resources/public/favicon.ico
+./hello/resources/sql/queries.sql
+./hello/resources/templates/about.html
+./hello/resources/templates/base.html
+./hello/resources/templates/error.html
+./hello/resources/templates/home.html
+./hello/src/hello/core.clj
+./hello/src/hello/db
+./hello/src/hello/db/core.clj
+./hello/src/hello/db/migrations.clj
+./hello/src/hello/handler.clj
+./hello/src/hello/layout.clj
+./hello/src/hello/middleware.clj
+./hello/src/hello/routes
+./hello/src/hello/routes/home.clj
+./hello/test/hello/test/db/core.clj
+./hello/test/hello/test/handler.clj