]> git.openstreetmap.org Git - rails.git/blobdiff - CONFIGURE.md
Move ICO favion into an IE conditional comment
[rails.git] / CONFIGURE.md
index 7feae6a1ee103cec636966d01e49ac75302f5c97..07f735cb2871e71c343529a699ad3cf859fbe1d4 100644 (file)
@@ -31,9 +31,9 @@ To give administrator or moderator permissions:
 $ bundle exec rails console
 >> user = User.find_by_display_name("My New User Name")
 => #[ ... ]
->> user.roles.create( {:role => "administrator", :granter_id => user.id}, :without_protection => true)
+>> user.roles.create(:role => "administrator", :granter_id => user.id)
 => #[ ... ]
->> user.roles.create( {:role => "moderator", :granter_id => user.id}, :without_protection => true)
+>> user.roles.create(:role => "moderator", :granter_id => user.id)
 => #[ ... ]
 >> user.save!
 => true
@@ -115,3 +115,5 @@ If you want to deploy The Rails Port for production use, you'll need to make a f
 * Your production database will also need the extensions and functions installed - see [INSTALL.md](INSTALL.md)
 * The included version of the map call is quite slow and eats a lot of memory. You should consider using [CGIMap](https://github.com/zerebubuth/openstreetmap-cgimap) instead.
 * The included version of the GPX importer is slow and/or completely inoperable. You should consider using [the high-speed GPX importer](http://git.openstreetmap.org/gpx-import.git/).
+* Make sure you precompile the production assets: `RAILS_ENV=production rake assets:precompile`
+* Make sure the web server user as well as the rails user can read, write and create directories in `tmp/`.