diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-23 09:40:28 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-23 09:43:44 +0200 |
commit | 407c4473ad6b1aa30c3d77bd75e3c273d03989b8 (patch) | |
tree | d933d6b4dcd04c131cd245c92eca13ad9f3127a6 /server.ts | |
parent | d063f8ca92070103ea1847cf8607ecae93e679ba (diff) | |
download | PeerTube-407c4473ad6b1aa30c3d77bd75e3c273d03989b8.tar.gz PeerTube-407c4473ad6b1aa30c3d77bd75e3c273d03989b8.tar.zst PeerTube-407c4473ad6b1aa30c3d77bd75e3c273d03989b8.zip |
Fix upgrade script \n
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ process.title = 'peertube' | |||
24 | const app = express() | 24 | const app = express() |
25 | 25 | ||
26 | // ----------- Database ----------- | 26 | // ----------- Database ----------- |
27 | // Do not use barels because we don't want to load all modules here (we need to initialize database first) | 27 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) |
28 | import { logger } from './server/helpers/logger' | 28 | import { logger } from './server/helpers/logger' |
29 | import { API_VERSION, CONFIG } from './server/initializers/constants' | 29 | import { API_VERSION, CONFIG } from './server/initializers/constants' |
30 | // Initialize database and models | 30 | // Initialize database and models |
@@ -55,7 +55,7 @@ import { apiRouter, clientsRouter, staticRouter } from './server/controllers' | |||
55 | 55 | ||
56 | // ----------- App ----------- | 56 | // ----------- App ----------- |
57 | 57 | ||
58 | // Enable cors for develop | 58 | // Enable CORS for develop |
59 | if (isTestInstance()) { | 59 | if (isTestInstance()) { |
60 | app.use(cors({ | 60 | app.use(cors({ |
61 | origin: 'http://localhost:3000', | 61 | origin: 'http://localhost:3000', |