mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
Merge pull request #44 from finn-no/heroku
Modified configuration to make unleash run on heroku.
This commit is contained in:
commit
90679326dc
15
package.json
15
package.json
@ -24,7 +24,8 @@
|
|||||||
"tdd": "mocha --watch test test/*",
|
"tdd": "mocha --watch test test/*",
|
||||||
"test-bamboo-ci": "mocha test test/*",
|
"test-bamboo-ci": "mocha test test/*",
|
||||||
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec",
|
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec",
|
||||||
"coverage-report": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
|
"coverage-report": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
|
||||||
|
"postinstall": "npm run build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"any-db": "2.1.0",
|
"any-db": "2.1.0",
|
||||||
@ -38,6 +39,12 @@
|
|||||||
"ini": "1.3.0",
|
"ini": "1.3.0",
|
||||||
"log4js": "0.6.21",
|
"log4js": "0.6.21",
|
||||||
"nconf": "0.6.9",
|
"nconf": "0.6.9",
|
||||||
|
"jsxhint": "0.4.15",
|
||||||
|
"jsx-loader": "^0.12.0",
|
||||||
|
"react": "^0.12.0",
|
||||||
|
"reqwest": "^1.1.4",
|
||||||
|
"webpack": "^1.4.9",
|
||||||
|
"webpack-dev-middleware": "^1.0.11",
|
||||||
"pg": "3.6.1"
|
"pg": "3.6.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -45,18 +52,12 @@
|
|||||||
"coveralls": "^2.11.2",
|
"coveralls": "^2.11.2",
|
||||||
"istanbul": "0.3.2",
|
"istanbul": "0.3.2",
|
||||||
"jshint": "2.5.2",
|
"jshint": "2.5.2",
|
||||||
"jsx-loader": "^0.12.0",
|
|
||||||
"jsxhint": "0.4.15",
|
|
||||||
"mocha": "1.20.1",
|
"mocha": "1.20.1",
|
||||||
"mocha-lcov-reporter": "0.0.1",
|
"mocha-lcov-reporter": "0.0.1",
|
||||||
"mockery": "1.4.0",
|
"mockery": "1.4.0",
|
||||||
"pre-commit": "0.0.9",
|
"pre-commit": "0.0.9",
|
||||||
"react": "^0.12.0",
|
|
||||||
"reqwest": "^1.1.4",
|
|
||||||
"supertest": "0.13.0",
|
"supertest": "0.13.0",
|
||||||
"supervisor": "0.6.0",
|
"supervisor": "0.6.0",
|
||||||
"webpack": "^1.4.9",
|
|
||||||
"webpack-dev-middleware": "^1.0.11",
|
|
||||||
"xmlbuilder": "2.4.4"
|
"xmlbuilder": "2.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1
public/js/bundle.js.map
Normal file
1
public/js/bundle.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -32,7 +32,7 @@ app.set('trust proxy');
|
|||||||
app.locals.baseUriPath = baseUriPath;
|
app.locals.baseUriPath = baseUriPath;
|
||||||
|
|
||||||
app.use(log4js.connectLogger(logger, {format: ':remote-addr :status :method :url :response-timems'}));
|
app.use(log4js.connectLogger(logger, {format: ':remote-addr :status :method :url :response-timems'}));
|
||||||
app.set('port', process.env.HTTP_PORT || 4242);
|
app.set('port', process.env.HTTP_PORT || process.env.PORT || 4242);
|
||||||
|
|
||||||
app.use(baseUriPath, express.static(__dirname + '/public'));
|
app.use(baseUriPath, express.static(__dirname + '/public'));
|
||||||
app.use(bodyParser.json({strict: false}));
|
app.use(bodyParser.json({strict: false}));
|
||||||
|
@ -1,18 +1,24 @@
|
|||||||
// docs: http://webpack.github.io/docs/configuration.html
|
// docs: http://webpack.github.io/docs/configuration.html
|
||||||
|
|
||||||
|
var path = require('path');
|
||||||
|
var root = path.normalize(path.join(__dirname, '.'));
|
||||||
|
var js_root = path.join(path.join(root, 'public'), 'js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
context: __dirname + '/public',
|
context: js_root,
|
||||||
entry: './js/app',
|
entry: 'app',
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
path: __dirname + '/public/js',
|
path: js_root,
|
||||||
filename: 'bundle.js',
|
filename: 'bundle.js',
|
||||||
publicPath: '/js/'
|
publicPath: '/js/'
|
||||||
},
|
},
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['', '.js', '.jsx']
|
root: [js_root],
|
||||||
|
extensions: ['', '.js', '.jsx'],
|
||||||
|
modulesDirectories: ["web_modules", "node_modules"]
|
||||||
},
|
},
|
||||||
|
|
||||||
module: {
|
module: {
|
||||||
|
Loading…
Reference in New Issue
Block a user