Skip to content

Commit 68fb600

Browse files
authored
Fix demo (#386)
1 parent 1118fb1 commit 68fb600

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,20 @@ The tus protocol supports optional [extensions][]. Below is a table of the suppo
118118
Start the demo server using Local File Storage
119119

120120
```bash
121-
yarn workspace demo start
121+
yarn build && yarn demo
122122
```
123123

124124
Start 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

131131
Start 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

137137
Then navigate to the demo ([localhost:1080](http://localhost:1080)) which uses [`tus-js-client`](https://github.com/tus/tus-js-client).

demo/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'})

0 commit comments

Comments
 (0)