]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/recipes/default.rb
nominatim: add static files to serve in production
[chef.git] / cookbooks / nominatim / recipes / default.rb
index a19f203b5620e4faa7c2aafbdc0ea1db5e467ff3..44bf649eac9a2cbcd7a8faa2c2d92953e6527b67 100644 (file)
@@ -143,6 +143,7 @@ package %w[
   python3-datrie
   python3-yaml
   python3-sqlalchemy-ext
+  python3-geoalchemy2
   python3-asyncpg
   php-pgsql
   php-intl
@@ -182,6 +183,17 @@ if node[:nominatim][:flatnode_file]
   end
 end
 
+remote_directory "#{project_directory}/website" do
+  source "website"
+  owner "nominatim"
+  group "nominatim"
+  mode "755"
+  files_owner "nominatim"
+  files_group "nominatim"
+  files_mode "644"
+  purge false
+end
+
 # Normally syncing via chef is a bad idea because syncing might involve
 # an update of database functions which should not be done while an update
 # is ongoing. Therefore we sync in between update cycles. There is an