Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@ The tus protocol supports optional [extensions][]. Below is a table of the suppo
Start the demo server using Local File Storage

```bash
yarn workspace demo start
yarn build && yarn demo
```

Start up the demo server using AWS S3. The environment variables `AWS_BUCKET`,
`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_REGION` need to be present.

```bash
yarn workspace demo start:s3
yarn build && yarn demo:s3
```

Start up the demo server using Google Cloud Storage. A `keyfile.json` needs to be present in the root of the repository.

```bash
yarn workspace demo start:gcs
yarn build && yarn demo:gcs
```

Then navigate to the demo ([localhost:1080](http://localhost:1080)) which uses [`tus-js-client`](https://github.com/tus/tus-js-client).
Expand Down
2 changes: 1 addition & 1 deletion demo/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const writeFile = (req, res) => {
if (!filename.startsWith('/dist/')) {
filename = '/demos/browser' + filename
}
filename = path.join(process.cwd(), '/node_modules/tus-js-client', filename)
filename = path.join(process.cwd(), '../node_modules/tus-js-client', filename)
fs.readFile(filename, 'binary', (err, file) => {
if (err) {
res.writeHead(500, {'Content-Type': 'text/plain'})
Expand Down