From ef4a2738cd551d8d0d35854e2f7c51880ab24be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Moln=C3=A1r?= Date: Fri, 27 Sep 2024 15:15:34 +0200 Subject: [PATCH] Fix paths --- .gitignore | 6 ++++-- config/deploy.rb | 3 ++- ml/decree-embeddings/data/.gitkeep | 0 ml/decree-embeddings/models/.gitkeep | 0 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 ml/decree-embeddings/data/.gitkeep create mode 100644 ml/decree-embeddings/models/.gitkeep diff --git a/.gitignore b/.gitignore index 8215fd5..e5d61c5 100644 --- a/.gitignore +++ b/.gitignore @@ -34,5 +34,7 @@ yarn-debug.log* /config/credentials/production.key __pycache__ -ml/decree-embeddings/models/ -ml/decree-embeddings/data/ \ No newline at end of file +ml/decree-embeddings/models/* +!ml/decree-embeddings/models/.gitkeep +ml/decree-embeddings/data/* +!ml/decree-embeddings/data/.gitkeep \ No newline at end of file diff --git a/config/deploy.rb b/config/deploy.rb index 10cb45d..a1846a9 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -16,7 +16,8 @@ set :whenever_identifier, -> { "#{fetch(:application)}-#{fetch(:stage)}" } # Links -set :linked_files, fetch(:linked_files, []).push('.env', 'config/credentials/production.key') +set :linked_files, + fetch(:linked_files, []).push('.env', 'config/credentials/production.key', 'ml/decree-embeddings/models/reducer.pk') set :linked_dirs, fetch(:linked_dirs, []).push( 'log', diff --git a/ml/decree-embeddings/data/.gitkeep b/ml/decree-embeddings/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ml/decree-embeddings/models/.gitkeep b/ml/decree-embeddings/models/.gitkeep new file mode 100644 index 0000000..e69de29