Skip to content

Commit

Permalink
Fix upgrade script \n
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Jul 23, 2017
1 parent d063f8c commit 407c447
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
/*.sublime-project
/*.sublime-workspace
/dist
/.idea
2 changes: 1 addition & 1 deletion scripts/upgrade-peertube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
yarn install --pure-lockfile
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."
4 changes: 2 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ process.title = 'peertube'
const app = express()

// ----------- 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 { API_VERSION, CONFIG } from './server/initializers/constants'
// Initialize database and models
Expand Down Expand Up @@ -55,7 +55,7 @@ import { apiRouter, clientsRouter, staticRouter } from './server/controllers'

// ----------- App -----------

// Enable cors for develop
// Enable CORS for develop
if (isTestInstance()) {
app.use(cors({
origin: 'http://localhost:3000',
Expand Down

0 comments on commit 407c447

Please sign in to comment.