Skip to content

Commit

Permalink
chore: run migration everytime ddrive start on docker
Browse files Browse the repository at this point in the history
  • Loading branch information
forscht committed Jan 11, 2023
1 parent c54cf69 commit 2b0509d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This next major version release 4.0 is ddrive written from scratch. It comes wit
- Added support for `rename` files/folders.
- Added support to `move` file/folder (Only via API, Not sure how to do it with frontend, PR welcomes.)
- Now uses `webhooks` instead of `bot/user tokens` to bypass the discord rate limit
- DDrive now uploads file chunks in parallel with limit. Which significantly increase the upload speed. I was able to upload file with 5GB of size in just 85 seconds.
- DDrive now uploads file chunks in parallel with limit. Which significantly increase the upload speed. I was able to upload file with `5GB of size in just 85 seconds`.
- Public access mode - It is not now possible to provide users read-only access with just one config var
- Batch upload files - Now you can upload multiple files at once from panel. (DClone support has been removed from this version)
- Bug fix - `download reset` for few mobile devices
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ WORKDIR /app
# Copy project files
COPY --chown=node:node . /app

# NPM Update
RUN npm update -g npm

# Install packages
RUN npm install

Expand Down
1 change: 1 addition & 0 deletions docker/entrypoint
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env sh

cd /app && npm run migration:up
node /app/bin/ddrive "$@"

0 comments on commit 2b0509d

Please sign in to comment.