-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,940 changed files
with
420,904 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
vault.js filter=git-crypt diff=git-crypt | ||
*vault* filter=git-crypt diff=git-crypt | ||
*.tex filter=git-crypt diff=git-crypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules | |
.DS_Store | ||
/bower_components | ||
/app/bower_components | ||
/www/bower_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env node | ||
|
||
const config = require("../config"); | ||
const debug = require('debug')('Naranawm:rebuild'); | ||
|
||
const Dictionary = require('../eanaEltuMigration/dictionary'); | ||
const dictionary = new Dictionary(config); | ||
|
||
debug("Starting Database Rebuild"); | ||
dictionary.buildDictionary(function(){ | ||
// We have a full Dictionary now to do things with :) | ||
|
||
dictionary.export(function(){ | ||
debug("Export Complete!!!"); | ||
process.exit(0); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"use strict"; | ||
const env = process.env.NODE_ENV || "development"; | ||
|
||
// If running in development mode, use the local config properties, otherwise pull in that environments config | ||
module.exports = (env !== "development") ? require(`./${env}.vault`) : require('./local'); |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
|
||
port: 3000, | ||
|
||
databases: { | ||
naranawm: { | ||
host: "127.0.0.1", | ||
database: "naranawm", | ||
username: "mobile", | ||
password: "mobile", | ||
dialect: "mysql" | ||
}, | ||
eanaEltu: { | ||
host: '127.0.0.1', | ||
database: 'eanaeltu', | ||
username: 'mobile', | ||
password: 'mobile' | ||
}, | ||
sqlite: { | ||
host: "127.0.0.1", | ||
dialect: "sqlite", | ||
storage: "database.sqlite", | ||
benchmark: false | ||
} | ||
} | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"apps": [ | ||
{ | ||
"name": "Naranawm", | ||
"script": "bin/www", | ||
"env_production": { | ||
"NODE_ENV": "production" | ||
} | ||
}, | ||
{ | ||
"name": "Naranawm-RebuildDB", | ||
"script": "bin/rebuild", | ||
"autorestart": false | ||
} | ||
], | ||
"deploy": { | ||
"production": { | ||
"user": "node", | ||
"host": [ | ||
"192.168.137.95" | ||
], | ||
"ref": "origin/master", | ||
"repo": "git@github.com:LearnNavi/Naranawm.git", | ||
"path": "/opt/Naranawm", | ||
"ssh_options": "StrictHostKeyChecking=no", | ||
"post-deploy": "npm install && pm2 startOrRestart ecosystem.json --env production", | ||
"env": { | ||
"NODE_ENV": "production" | ||
} | ||
}, | ||
"kenten": { | ||
"user": "root", | ||
"host": [ | ||
"192.168.137.95" | ||
], | ||
"ref": "origin/master", | ||
"repo": "https://github.com/LearnNavi/Naranawm.git", | ||
"path": "/opt/Naranawm", | ||
"ssh_options": "StrictHostKeyChecking=no", | ||
"post-setup": "git-crypt unlock ~/Naranawm.key", | ||
"post-deploy": "npm install && pm2 startOrRestart ecosystem.json --env kenten", | ||
"env": { | ||
"NODE_ENV": "kenten" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.