From 3f3f412d04e5bc12080d84fd60c19e7cfe85fbf0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 31 Jul 2024 08:16:14 +0200 Subject: [PATCH] Support another dev environment --- .gitignore | 3 ++- config/dev-1.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 config/dev-1.yaml diff --git a/.gitignore b/.gitignore index cf3b25a1c..e1b165306 100644 --- a/.gitignore +++ b/.gitignore @@ -18,8 +18,9 @@ yarn-error.log /packages/tests/fixtures/video_59fps.mp4 /packages/tests/fixtures/transcription/models-v1/ -# Production +# PeerTube /storage +/dev1 /config/production.yaml /config/local* /ffmpeg/ diff --git a/config/dev-1.yaml b/config/dev-1.yaml new file mode 100644 index 000000000..1c1cfc660 --- /dev/null +++ b/config/dev-1.yaml @@ -0,0 +1,29 @@ +# Use another database and directories than dev.yaml +# Useful if you work on 2 big features that update DB schema +# To use this config: NODE_APP_INSTANCE=1 npm run dev + +database: + suffix: '_dev1' + +redis: + db: 1 + +storage: + tmp: 'dev1/tmp/' + tmp_persistent: 'dev1/tmp-persistent/' + bin: 'dev1/bin/' + avatars: 'dev1/avatars/' + web_videos: 'dev1/web-videos/' + streaming_playlists: 'dev1/streaming-playlists/' + original_video_files: 'dev1/original-video-files/' + redundancy: 'dev1/redundancy/' + logs: 'dev1/logs/' + previews: 'dev1/previews/' + thumbnails: 'dev1/thumbnails/' + storyboards: 'dev1/storyboards/' + torrents: 'dev1/torrents/' + captions: 'dev1/captions/' + cache: 'dev1/cache/' + plugins: 'dev1/plugins/' + well_known: 'dev1/well-known/' + client_overrides: 'dev1/client-overrides/'