Fix upgrade script \n
This commit is contained in:
parent
d063f8ca92
commit
407c4473ad
|
@ -18,3 +18,4 @@
|
||||||
/*.sublime-project
|
/*.sublime-project
|
||||||
/*.sublime-workspace
|
/*.sublime-workspace
|
||||||
/dist
|
/dist
|
||||||
|
/.idea
|
||||||
|
|
|
@ -35,4 +35,4 @@ git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."
|
echo -e "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."
|
||||||
|
|
|
@ -24,7 +24,7 @@ process.title = 'peertube'
|
||||||
const app = express()
|
const app = express()
|
||||||
|
|
||||||
// ----------- Database -----------
|
// ----------- Database -----------
|
||||||
// Do not use barels because we don't want to load all modules here (we need to initialize database first)
|
// Do not use barrels because we don't want to load all modules here (we need to initialize database first)
|
||||||
import { logger } from './server/helpers/logger'
|
import { logger } from './server/helpers/logger'
|
||||||
import { API_VERSION, CONFIG } from './server/initializers/constants'
|
import { API_VERSION, CONFIG } from './server/initializers/constants'
|
||||||
// Initialize database and models
|
// Initialize database and models
|
||||||
|
@ -55,7 +55,7 @@ import { apiRouter, clientsRouter, staticRouter } from './server/controllers'
|
||||||
|
|
||||||
// ----------- App -----------
|
// ----------- App -----------
|
||||||
|
|
||||||
// Enable cors for develop
|
// Enable CORS for develop
|
||||||
if (isTestInstance()) {
|
if (isTestInstance()) {
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: 'http://localhost:3000',
|
origin: 'http://localhost:3000',
|
||||||
|
|
Loading…
Reference in New Issue