Commit 5d4fdb3eccadd56f9cb7d9ccd59bad6f581d6c6b

Authored by Joenio Costa
Committed by Daniela Feitosa
1 parent 0367bb22

Documenting how to create admin user using console

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
INSTALL
... ... @@ -248,6 +248,10 @@ $ RAILS_ENV=production ./script/runner "Environment.default.domains << Domain.ne
248 248  
249 249 (replace "your.domain.com" with your actual domain name)
250 250  
  251 +Add at least an user as admin of environment:
  252 +
  253 +$ RAILS_ENV=production ./script/runner "User.create(:login => 'adminuser', :email => 'admin@example.com', :password => 'admin', :password_confirmation => 'admin', :environment => Environment.default)"
  254 +
251 255 Compile the translations:
252 256  
253 257 $ RAILS_ENV=production rake noosfero:translations:compile
... ...