X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c3d7cfd7ff90879511ff1c8b54a5d280e2e15057..2d26d1f7644f0e1a4041339bad4c4570806fcac7:/CONFIGURE.md diff --git a/CONFIGURE.md b/CONFIGURE.md index 7feae6a1e..07f735cb2 100644 --- a/CONFIGURE.md +++ b/CONFIGURE.md @@ -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/`.