File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,20 +118,20 @@ The tus protocol supports optional [extensions][]. Below is a table of the suppo
118118Start the demo server using Local File Storage
119119
120120``` bash
121- yarn workspace demo start
121+ yarn build && yarn demo
122122```
123123
124124Start up the demo server using AWS S3. The environment variables ` AWS_BUCKET ` ,
125125` AWS_ACCESS_KEY_ID ` , ` AWS_SECRET_ACCESS_KEY ` , and ` AWS_REGION ` need to be present.
126126
127127``` bash
128- yarn workspace demo start :s3
128+ yarn build && yarn demo :s3
129129```
130130
131131Start up the demo server using Google Cloud Storage. A ` keyfile.json ` needs to be present in the root of the repository.
132132
133133``` bash
134- yarn workspace demo start :gcs
134+ yarn build && yarn demo :gcs
135135```
136136
137137Then navigate to the demo ([ localhost:1080] ( http://localhost:1080 ) ) which uses [ ` tus-js-client ` ] ( https://github.com/tus/tus-js-client ) .
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const writeFile = (req, res) => {
5959 if ( ! filename . startsWith ( '/dist/' ) ) {
6060 filename = '/demos/browser' + filename
6161 }
62- filename = path . join ( process . cwd ( ) , '/node_modules/tus-js-client' , filename )
62+ filename = path . join ( process . cwd ( ) , '.. /node_modules/tus-js-client' , filename )
6363 fs . readFile ( filename , 'binary' , ( err , file ) => {
6464 if ( err ) {
6565 res . writeHead ( 500 , { 'Content-Type' : 'text/plain' } )
You can’t perform that action at this time.
0 commit comments