* Atom / RSS meta link * Spike * Feeling good about this spike now * Remove document.collection * Remove koa.ctx from all presenters to make them portable outside requests * Remove full serialized model from events Move events.add to controllers for now, will eventually be in commands * collections.create event parentDocument -> parentDocumentId * Fix up deprecated tests * Fixed: Doc creation * documents.move * Handle collection deleted * 💚 * Authorize room join requests * Move starred data structure Account for documents with no context on sockets * Add socket.io-redis * Add WEBSOCKETS_ENABLED env variable to disable websockets entirely for self hosted New installations will default to true, existing installations to false * 💚 No need for promise response here * Reload notice
29 lines
740 B
JavaScript
29 lines
740 B
JavaScript
// @flow
|
|
require('./init');
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
console.log(
|
|
'\n\x1b[33m%s\x1b[0m',
|
|
'Running Outline in production mode. Use `yarn dev` to run in development with live code reloading'
|
|
);
|
|
} else if (process.env.NODE_ENV === 'development') {
|
|
console.log(
|
|
'\n\x1b[33m%s\x1b[0m',
|
|
'Running Outline in development mode with hot reloading. To run Outline in production mode, use `yarn start`'
|
|
);
|
|
}
|
|
|
|
if (
|
|
!process.env.SECRET_KEY ||
|
|
process.env.SECRET_KEY ===
|
|
'F0E5AD933D7F6FD8F4DBB3E038C501C052DC0593C686D21ACB30AE205D2F634B'
|
|
) {
|
|
console.error(
|
|
'Please set SECRET_KEY env variable with output of `openssl rand -hex 32`'
|
|
);
|
|
// $FlowFixMe
|
|
process.exit(1);
|
|
}
|
|
|
|
require('./server');
|