Installing Redmine on Windows March 30, 2009
Posted by artiko in: Software , Web , Windows , trackback Due to the project this week I was faced with, as it turned out a simple task of installing Redmine on a machine with Windows XP Professional.
Redmine is a web-based application supporting project management, team communication, creating a wiki, login time, integration with the repository and a few other useful things. It is written in Rubby on Rails framework, therefore, to run it we need to be installed on the machine. If you have not we recommend will proceed according to this description .
Redmine to work needs a database, it can be the engine of MySQL, PostgreSQL or SQLite.
If you use the MySQL database we need to create a new table, preferably also a new user, who will have full rights to this table.
If you do not want to install the database engine can use the database sqlite3. If you do not have it already installed on your system behave as described here: http://artiko.net.pl/2009/03/28/instalacja-sqlite-do-wspolpracy-z-ruby-w-windowsie/ .
She Redmine'a installation is as follows:
- Download the latest version from Ruby Forge and unpack it to a folder created by us where we want to keep the application (for example, C: \ redmine)
- in the subfolder config file rename database.yml.example to database.yml and open it for editing
- if you use MySQL Configuration of looks like this (redmine, user and password should be replaced with the name of the database you previously created a user and password to replace the user name, which we have the power to the table and its password):
production:
adapter: mysql
database: redmine
host: localhost
username: user
password: password - If you're using SQLite configuration should look like this:
production:
adapter: sqlite3
dbfile: db/redmine.db - on the command line in the path C: \ redmine type:
rake db:migrate RAILS_ENV="production"
We'll create a database schema, and an administrator account - Now enter the
rake redmine:load_default_data RAILS_ENV="production"
to load the default configuration - generate a password to encrypt data in cookies:
rake config/initializers/session_store.rb - re-enter the command line
ruby script/server webrick -e production
and we can run our own Redmine'a typing http://localhost:3000/ . Login is admin, password: admin.
Done! Our Redmine is already running!
If you want to run it as a Windows service must install Mongrel server in turn enter the command line:
gem install mongrel
gem install mongrel_service
mongrel_rails service::install -N redmine -cc:\redmine -p 4000 -e production
sc config myapp start= auto
net start redmine
We will install the Mongrel server, and a system service named redmine, which will run automatically at startup and will run on port 4000. You can also set the dependence of our services redmine from the MySQL server:
sc config myapp start= auto dependency= MySql
If we wanted to remove the service, redmine can type in the command line:
sc delete redmine
In this way, we got a fully working excellent Redmine application.




Comments »
No comments yet - be the first?