mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
upgrade node to 4.2.2. Closes #106
This commit is contained in:
parent
5912569bdd
commit
94f10a3a4b
@ -1,4 +1,4 @@
|
|||||||
FROM nodesource/trusty:0.12
|
FROM node:4.2.2
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
@ -12,6 +12,15 @@ Known client implementations:
|
|||||||
- [unleash-client-java](https://github.com/finn-no/unleash-client-java)
|
- [unleash-client-java](https://github.com/finn-no/unleash-client-java)
|
||||||
- [unleash-client-node](https://github.com/finn-no/unleash-client-node)
|
- [unleash-client-node](https://github.com/finn-no/unleash-client-node)
|
||||||
|
|
||||||
|
## Run with docker
|
||||||
|
We have set up docker-compose to start postgres and the unleash server together. This makes it really fast to start up
|
||||||
|
unleash locally without setting up a database or node.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose build
|
||||||
|
$ docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Create a local unleash databases in postgres
|
### Create a local unleash databases in postgres
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
command: run db-migrate-and-start
|
command: npm run db-migrate-and-start
|
||||||
ports:
|
ports:
|
||||||
- "4242:4242"
|
- "4242:4242"
|
||||||
links:
|
links:
|
||||||
|
@ -8,6 +8,8 @@ var logger = log4js.getLogger('unleash');
|
|||||||
// TODO: make level configurable
|
// TODO: make level configurable
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
logger.setLevel(log4js.levels.ERROR);
|
logger.setLevel(log4js.levels.ERROR);
|
||||||
|
} else if (process.env.NODE_ENV === 'test') {
|
||||||
|
logger.setLevel(log4js.levels.ERROR);
|
||||||
} else {
|
} else {
|
||||||
logger.setLevel(log4js.levels.DEBUG);
|
logger.setLevel(log4js.levels.DEBUG);
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
"bluebird": "2.9.14",
|
"bluebird": "2.9.14",
|
||||||
"body-parser": "1.12.2",
|
"body-parser": "1.12.2",
|
||||||
"cookie-parser": "^1.3.3",
|
"cookie-parser": "^1.3.3",
|
||||||
"db-migrate": "0.9.11",
|
"db-migrate": "0.9.23",
|
||||||
"deep-diff": "^0.3.0",
|
"deep-diff": "^0.3.0",
|
||||||
"errorhandler": "1.3.5",
|
"errorhandler": "1.3.5",
|
||||||
"express": "4.12.3",
|
"express": "4.12.3",
|
||||||
@ -49,7 +49,7 @@
|
|||||||
"ini": "1.3.3",
|
"ini": "1.3.3",
|
||||||
"jsx-loader": "0.12.2",
|
"jsx-loader": "0.12.2",
|
||||||
"jsxhint": "0.13.2",
|
"jsxhint": "0.13.2",
|
||||||
"knex": "^0.7.3",
|
"knex": "^0.9.0",
|
||||||
"lodash": "^3.5.0",
|
"lodash": "^3.5.0",
|
||||||
"log4js": "0.6.22",
|
"log4js": "0.6.22",
|
||||||
"moment": "^2.11.2",
|
"moment": "^2.11.2",
|
||||||
@ -66,7 +66,7 @@
|
|||||||
"chai": "2.1.2",
|
"chai": "2.1.2",
|
||||||
"coveralls": "^2.11.2",
|
"coveralls": "^2.11.2",
|
||||||
"istanbul": "^0.3.5",
|
"istanbul": "^0.3.5",
|
||||||
"jest-cli": "0.4.15",
|
"jest-cli": "0.5.4",
|
||||||
"jshint": "^2.6.0",
|
"jshint": "^2.6.0",
|
||||||
"mocha": "^2.1.0",
|
"mocha": "^2.1.0",
|
||||||
"mocha-lcov-reporter": "0.0.2",
|
"mocha-lcov-reporter": "0.0.2",
|
||||||
|
@ -17,7 +17,7 @@ describe("FeatureForm", function () {
|
|||||||
it("should render empty form", function() {
|
it("should render empty form", function() {
|
||||||
Component = TestUtils .renderIntoDocument(<FeatureForm strategies={strategies} />);
|
Component = TestUtils .renderIntoDocument(<FeatureForm strategies={strategies} />);
|
||||||
var name = Component.getDOMNode().querySelectorAll("input");
|
var name = Component.getDOMNode().querySelectorAll("input");
|
||||||
expect(name[0].value).toEqual(undefined);
|
expect(name[0].value).toEqual("");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user