configure environment for test in server bitcore.io. util find ref
This commit is contained in:
parent
5855efa566
commit
d145cc6f80
|
@ -3,7 +3,7 @@ head
|
|||
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
|
||||
meta(name='viewport', content='width=device-width,initial-scale=1.0')
|
||||
|
||||
title Mystery
|
||||
title= appName+' - '+title
|
||||
meta(http-equiv='Content-type', content='text/html;charset=UTF-8')
|
||||
meta(name="keywords", content="node.js, express, mongoose, mongodb, angularjs")
|
||||
meta(name="description", content="Mystery")
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
db: "mongodb://localhost/mystery-dev",
|
||||
db: "mongodb://localhost/mystery-test",
|
||||
app: {
|
||||
name: "Mystery - Test"
|
||||
},
|
||||
port: '3301',
|
||||
bitcoind: {
|
||||
user: 'mystery',
|
||||
pass: 'real_mystery',
|
||||
protocol: 'http',
|
||||
host: process.env.BITCOIND_HOST || '127.0.0.1',
|
||||
port: process.env.BITCOIND_PORT || '8332',
|
||||
port: process.env.BITCOIND_PORT || '18332',
|
||||
},
|
||||
network: 'testnet',
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
* Module dependencies.
|
||||
*/
|
||||
var express = require('express'),
|
||||
helpers = require('view-helpers'),
|
||||
config = require('./config');
|
||||
|
||||
module.exports = function(app, passport, db) {
|
||||
|
@ -36,6 +37,9 @@ module.exports = function(app, passport, db) {
|
|||
app.use(express.json());
|
||||
app.use(express.methodOverride());
|
||||
|
||||
//dynamic helpers
|
||||
app.use(helpers(config.app.name));
|
||||
|
||||
//routes should be at the last
|
||||
app.use(app.router);
|
||||
|
||||
|
|
|
@ -59,7 +59,8 @@
|
|||
"grunt-concurrent": "~0.4.2",
|
||||
"grunt-nodemon": "~0.1.2",
|
||||
"grunt-mocha-test": "~0.8.1",
|
||||
"should": "~2.1.1"
|
||||
"should": "~2.1.1",
|
||||
"view-helpers": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-contrib-watch": "latest",
|
||||
|
|
|
@ -20,6 +20,4 @@ angular.module('mystery.blocks').controller('BlocksController', ['$scope', '$rou
|
|||
});
|
||||
};
|
||||
|
||||
// for avoid warning. please remove when you use Blocks
|
||||
$scope.blocks = Blocks;
|
||||
}]);
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
FIND='find';
|
||||
|
||||
##if [[ "$OSTYPE" =~ "darwin" ]]
|
||||
##then
|
||||
## FIND='gfind'
|
||||
##fi
|
||||
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo "$0 : find functions references "
|
||||
echo "Usage $0 function_name "
|
||||
exit;
|
||||
fi
|
||||
|
||||
EXTRA=''
|
||||
|
||||
|
||||
CMD="grep -rnH"
|
||||
|
||||
if [ "$2" != '--nocolor' ]
|
||||
then
|
||||
CMD="$CMD --color=always"
|
||||
fi
|
||||
|
||||
|
||||
$FIND -L . -name \*.json -not -wholename \*node_modules\* -not -wholename \*public/lib\* -exec $CMD "$1" {} + \
|
||||
-o -name \*.html -not -wholename \*node_modules\* -not -wholename \*public/lib\* -exec $CMD "$1" {} + \
|
||||
-o -name \*.jade -not -wholename \*node_modules\* -not -wholename \*public/lib\* -exec $CMD "$1" {} + \
|
||||
-o -name \*.js -not -wholename \*node_modules\* -not -wholename \*public/lib\* -exec $CMD "$1" {} +
|
||||
|
Loading…
Reference in New Issue