These are chat archives for canjs/canjs

Dec 2017
Nico R.
Dec 26 2017 13:04
@chasenlehara that was I was looking for (scope.element) thanks!!!!
Gregg Roemhildt
Dec 26 2017 23:21
Does anyone have experience running donejs under express?
Chasen Le Hara
Dec 26 2017 23:30
Under express as in, express as the backend router with done-ssr or something like that?
If so, yeah :)
Gregg Roemhildt
Dec 26 2017 23:31
Yeah, my goal is to set up a test server with express that has A) A REST api server, B) Donejs SSR, and C) More fun things?
I'm kind of looking through the bitballs example for guidance, and was curious if its still possible to use the donejs auto-reload when serving from express in dev-mode?
Chasen Le Hara
Dec 26 2017 23:34
Yeah, definitely should be doable
Gregg Roemhildt
Dec 26 2017 23:35
so far my app looks like this:
const express = require('express');
const doneSSR = require('done-ssr-middleware');

const app = express();

app.use(express.static(__dirname + '/public'));

app.use('/', doneSSR({
  config: __dirname + '/public/package.json!npm',

app.listen(3000, () => {
  console.log('Example app listening on port 3000!');
}); = app;
Chasen Le Hara
Dec 26 2017 23:37
I think you’ll also want to pass liveReload: true to doneSSR()
I also think you need to exec() steal-tools with the live-reload flag; let me see if I can find an example.
Gregg Roemhildt
Dec 26 2017 23:43
Ahhh, that's what that does