Skip to content

Batch replace markdown documents / マークダウン文書の一括置換 #7180

Discussion options

You must be logged in to vote

(日本語のマニュアルは下の方にあります)

Migration of page body (English)

Warning
Migration in this way is applied only to the latest revision. Past revisions are not applied.

Usage

git clone https://github.com/weseek/growi
cd growi/bin/data-migrations

NETWORK=growi_devcontainer_default \
MONGO_URI=mongodb://growi_devcontainer_mongo_1/growi \
docker run --rm \
  --network $NETWORK \
  -v "$(pwd)"/src:/opt \
  -w /opt \
  -e MIGRATION_MODULE=v60x \
  mongo:6.0 \
  /bin/mongosh $MONGO_URI index.js

Variables

Variable Description Default
NETWORK Network in docker compose of MongoDB server -
MONGO_URI URI that can connect to MongoDB -

Environment variables

Required

Variable Description Default

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

yuki-takei
Feb 5, 2023
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@miya
Comment options

Answer selected by yuki-takei
Comment options

yuki-takei
Feb 8, 2023
Maintainer Author

You must be logged in to vote
0 replies
Comment options

yuki-takei
Feb 8, 2023
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants