Skip to content

Commit

Permalink
fixed virtuoso port
Browse files Browse the repository at this point in the history
  • Loading branch information
mgpsp committed Jul 24, 2018
1 parent 82ea481 commit e7c172a
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 39 deletions.
7 changes: 4 additions & 3 deletions conf/deployment_configs.json
Expand Up @@ -101,7 +101,7 @@
},
"virtuosoHost": "192.168.56.249",
"virtuosoPort": "8890",
"virtuosoISQLPort": "1112",
"virtuosoISQLPort": "1111",
"virtuosoConnector": "jdbc",
"virtuosoAuth": {
"user": "dba",
Expand Down Expand Up @@ -1111,7 +1111,8 @@
"destroy_all_graphs": true,
"destroy_all_indexes": true,
"destroy_datastore": true,
"destroy_files_store": true
"destroy_files_store": true,
"destroy_mysql_database": true
},
"baselines": {},
"logging": {
Expand Down Expand Up @@ -1236,7 +1237,7 @@
"cooldown_secs": 20
},
"docker": {
"active": true,
"active": false,
"reuse_checkpoints": true,
"create_checkpoints": true,
"destroy_existing_images_at_start": false,
Expand Down
200 changes: 168 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/app/views/social/showPost.html
@@ -1,9 +1,9 @@
<!--<div class="panel panel-default" style="margin-left: 20%; margin-right: 20%">-->

<div class="position-arrows">
<!--<div class="position-arrows">
<i class="fa fa-arrow-up" ng-click="movePost(postsContents[postUri].uri, 1, postsContents[postUri].fixedPosition)"></i>
<i class="fa fa-arrow-down click-down" ng-click="movePost(postsContents[postUri].uri, -1, postsContents[postUri].fixedPosition)"></i>
</div>
</div>-->
<div class="centered-spinner">
<span spinner-key="social-dendro-spinner" us-spinner="{radius:30, width:8, length: 16}"
spinner-start-active="true"></span>
Expand Down
7 changes: 6 additions & 1 deletion src/bootup/init/init_mysql.js
Expand Up @@ -20,12 +20,17 @@ const initMySQL = function (app, callback)
logging: false,
operatorsAliases: false
});
let query = "CREATE DATABASE IF NOT EXISTS " + Config.mySQLDBName + ";";
if (Config.startup.load_databases && Config.startup.destroy_mysql_database)
{
query = "DROP DATABASE IF EXISTS " + Config.mySQLDBName + ";" + query;
}
sequelize
.authenticate()
.then(() =>
{
Logger.log_boot_message("Connected to MySQL!");
return sequelize.query("CREATE DATABASE IF NOT EXISTS " + Config.mySQLDBName + ";").then(data =>
return sequelize.query(query).then(data =>
callback(null, data))
.catch(err =>
{
Expand Down
3 changes: 2 additions & 1 deletion src/kb/db.js
Expand Up @@ -774,7 +774,8 @@ DbConnection.prototype.create = function (callback)
{
if (err)
{
Logger.log("error", "Error initializing Virtuoso connection pool: " + JSON.stringify(err));
// Logger.log("error", "Error initializing Virtuoso connection pool: " + JSON.stringify(err));
Logger.log("error", "Error initializing Virtuoso connection pool: " + JSON.stringify(err) + " RESULT: " + JSON.stringify(result));
callback(err, result);
}
else
Expand Down

0 comments on commit e7c172a

Please sign in to comment.