aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-18 12:03:32 +0200
committerChocobozzz <me@florianbigard.com>2019-10-18 12:03:32 +0200
commitfff2183df6129362ad50941d4d1979d4aa292801 (patch)
tree77ed3ca604e433398d26cfded3f551d0abf1c4de
parenteba06469b70ffd722532881e40574d2a38a2a19b (diff)
downloadPeerTube-fff2183df6129362ad50941d4d1979d4aa292801.tar.gz
PeerTube-fff2183df6129362ad50941d4d1979d4aa292801.tar.zst
PeerTube-fff2183df6129362ad50941d4d1979d4aa292801.zip
Fix audio uploading without preview
-rwxr-xr-xscripts/build/server.sh2
-rw-r--r--server/initializers/constants.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/server.sh b/scripts/build/server.sh
index 8a1d4ca9a..3880ac5fa 100755
--- a/scripts/build/server.sh
+++ b/scripts/build/server.sh
@@ -5,4 +5,4 @@ set -eu
5rm -rf ./dist 5rm -rf ./dist
6 6
7npm run tsc 7npm run tsc
8cp -r "./server/static" "./dist/server" 8cp -r "./server/static" "./server/assets" "./dist/server"
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 0e06496bc..10f95f5ab 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -576,7 +576,7 @@ const REDUNDANCY = {
576const ACCEPT_HEADERS = [ 'html', 'application/json' ].concat(ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS) 576const ACCEPT_HEADERS = [ 'html', 'application/json' ].concat(ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS)
577 577
578const ASSETS_PATH = { 578const ASSETS_PATH = {
579 DEFAULT_AUDIO_BACKGROUND: join(root(), 'server', 'assets', 'default-audio-background.jpg') 579 DEFAULT_AUDIO_BACKGROUND: join(root(), 'dist', 'server', 'assets', 'default-audio-background.jpg')
580} 580}
581 581
582// --------------------------------------------------------------------------- 582// ---------------------------------------------------------------------------