Content
Got open project 3.0 running on windows with postgres, but having trouble now logging in
Added by Julie Miller over 10 years ago
Guys, im quite the newbie when it comes to ruby on rails in general… so excuse me if im doing something completely wrong here.
I just set up this environment on windows 2012 R2 by mostly following the windows installation guide. I had to add in a step because the bundler wasn’t working, so i edited the lib/bundler/cli/install.rb to skip the check for windows and everything seemed to go OK after that.
But my question is…
I couldnt find where to configure mysql or launch mysql from the command line by just following the guide, so I chose to go the postgres route.
I installed postgres and using pgadmin i followed all of the steps in the guide and i got to the point where i edit the database.yml file.
I made my database.yml file look like this
development:
adapter: postgresql
encoding: unicode
database: openproject
pool: 5
username: openproject
password: ****
I then ran
bundle exec rake db:create:all
bundle exec rake db:migrate
bundle exec rails server
and although i got a few errors, the website is running. The issue im seeing now, is I try to log on using admin/admin and it tells me the password is incorrect or the account is locked out.
Why doesn’t admin/admin work? Where in postgres can i go to fix this? Should i be using a different default username and password?
Thanks.
Replies (1)
Hello Juile,
you just missed one step after
rake db:migrate
run the following to create the the default admin user and some other needed stuff:Best
Ratzi