View Code? Open in Web Editor
NEW
Créez simplement des sites web évolutifs en Node.js ! [Create websites with server-side JavaScript easily!]
Home Page: http://node-atlas.js.org/
License: GNU General Public License v2.0
JavaScript 94.07%
HTML 4.64%
Stylus 1.30%
node-atlas's People
node-atlas's Issues
Version
2.0.0-beta45
Steps to reproduce
/* `webconfig-f1.json`
`{
"httpPort": 5001,
"routes": "routes-f.json"
}`
*/
/* `webconfig-f2.json`
`{
"httpPort": 5002,
"routes": "routes-f.json"
}`
*/
/* `routes-f.json`
`{
"/": "index.html"
}
`
*/
var NA = require ( "node-atlas" ) ,
na1 = new NA ( ) ,
na2 = new NA ( ) ;
na1 . started ( function ( ) {
na2 . started ( function ( ) {
na1 . webconfig . routes [ '/test' ] = 'test.htm' ;
console . log ( na2 . webconfig . routes [ '/test' ] ) ; // `/test`. That should be `undefined`
} ) . run ( {
"path" : __dirname ,
"webconfig" : "webconfig-f2.json"
} ) ;
} ) . run ( {
"path" : __dirname ,
"webconfig" : "webconfig-f1.json"
} ) ;
What is expected?
Two different route object not cross shared.
What is actually happening?
Two route object shared.
You can use this code as a new test into test.js
Hello, I wan't use NodeAtlas with a proxy.
Do you have any doc and exemple for this?
Pierre
path.join not able to join a path when one of argument is not a string. In case of generate current route parameter is set to false (boolean), NodeAtlas crash if you use --generate property. Same if redirect property is used instead of template property.