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