mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
Fix import_legacy_uploads
This commit is contained in:
parent
a5f8426325
commit
abc17b2adc
@ -5,7 +5,7 @@ EXPOSE 7687 7474
|
||||
VOLUME /mongo-export /uploads /data
|
||||
|
||||
RUN apk upgrade --update
|
||||
RUN apk add --no-cache mongodb-tools openssh nodejs yarn
|
||||
RUN apk add --no-cache mongodb-tools openssh nodejs yarn rsync
|
||||
|
||||
FROM humanconnection/nitro-backend:latest as backend
|
||||
|
||||
@ -23,5 +23,4 @@ RUN yarn install && \
|
||||
# would happen if we `yarn install|add` in the target directory
|
||||
|
||||
COPY migration ./migration
|
||||
COPY ./binaries/migrate.sh /usr/local/bin/migrate
|
||||
COPY ./binaries/sync_uploads.sh /usr/local/bin/sync_uploads
|
||||
COPY ./binaries/* /usr/local/bin/
|
||||
|
||||
4
maintenance/binaries/reset_db
Executable file
4
maintenance/binaries/reset_db
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
cd /nitro-backend && yarn run db:reset
|
||||
4
maintenance/binaries/seed_db
Executable file
4
maintenance/binaries/seed_db
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
cd /nitro-backend && yarn run db:reset
|
||||
Loading…
x
Reference in New Issue
Block a user