Permalink
Browse files

Modify the generated application.yml to point to correct directories.

  • Loading branch information...
1 parent aa286c6 commit 6cad7876ce94d4cf2793e1690ad57d9543cbe06e @iandees iandees committed Mar 28, 2012
Showing with 15 additions and 0 deletions.
  1. +9 −0 manifests/base.pp
  2. +6 −0 manifests/osm_directories_setup.sh
View
@@ -226,4 +226,13 @@
logoutput => "true",
path => ["/usr/bin", "/bin", "/usr/sbin", "/sbin"],
require => [Exec["bundle"]]
+}
+
+exec { "set_up_osm_website_directories":
+ cwd => "/home/vagrant",
+ user => "vagrant",
+ command => "/bin/sh /vagrant/manifests/osm_directories_setup.sh && touch /home/vagrant/osm_directories_setup.log",
+ creates => "/home/vagrant/osm_directories_setup.log",
+ logoutput => "true",
+ require => [ Exec["rake_migrate"] ]
}
@@ -0,0 +1,6 @@
+# the openstreetmap rails app requires a directory for GPX traces and rendered images
+# this creates those directories and corrects the config to point to those directories
+mkdir -p /home/vagrant/osm/images
+mkdir -p /home/vagrant/osm/traces
+
+sed -i 's/dir: \"\/home\/osm\//dir: \"\/home\/vagrant\/osm\//' /home/vagrant/openstreetmap-website/config/application.yml

0 comments on commit 6cad787

Please sign in to comment.