lunes, 26 de septiembre de 2011

Instalando REDMINE en Windows XP (Configuracion de Email)

Email Configuration

Configuration Directives

This page is a work in progress, the following configuration directives are only a partial list.

authentication

The type of authentication method expected by your service provider.
Valid settings:
  • :login
  • :none
(note: if you set this to :none, you must not include the user_name and password settings)

delivery_method

The mail transport method to be used.
Valid settings:
  • :smtp
  • :async_smtp - valid in trunk/0.9+ only
  • :sendmail
  • :async_sendmail - valid in trunk/0.9+ only

Asynchronous delivery_methods

The :async_smtp and :async_sendmail use asynchronous sends, which means Redmine does not wait for the email to be sent to display the next page. See Asynchronous Email Delivery for more details.

Example configuration.yml Configurations

Simple Login Authentication (default settings)

# Outgoing email settings

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.example.net
    port: 25
    domain: example.net
    authentication: :login
    user_name: redmine@example.net
    password: redmine

development:
  delivery_method: :smtp
  smtp_settings:
    address: 127.0.0.1
    port: 25
    domain: example.net
    authentication: :login
    user_name: redmine@example.net
    password: redmine
If you want to use GMail/Google Apps and other TLS-requiring SMTP servers, you'll have to add some TLS-related settings :
production:
  delivery_method: :smtp
  smtp_settings:
    tls: true
    enable_starttls_auto: true
    address: "smtp.gmail.com" 
    port: '587'
    domain: "smtp.gmail.com" 
    authentication: :plain
    user_name: "your_email@gmail.com" 
    password: "your_password" 

However, this will only work with "recent" enough ruby and rails versions (1.8.7 patchset 2xx and 2.3.5).
(See #5814 )

No Authentication

Example for an SMTP service provider with no authentication. Note the colon before none.
production:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.knology.net
    port: 25
    domain: cybersprocket.com
    authentication: :none

Using sendmail command

Example for a unix system that uses the /usr/sbin/sendmail command.
production:
  delivery_method: :sendmail

jueves, 22 de septiembre de 2011

Instalando REDMINE en Windows XP

REQUERIMIENTOS
- Se necesita Rake, que está escrito en Ruby, por lo que toca instalar ambos (depende de las versiones, puesto que hay muchas que no se pueden usar juntas porque no las interpreta de manera correcta):

Instale primero Ruby haciendo clic aqui. (nota: redmine no funciona con versiones de ruby superiores a 1.8.x.x). Luego de instalado, en la consola escriba

            gem install rails

para instalar RAILS.

Luego, de la misma forma, installar RACK

      gem install rack -v=1.1.0

finalmente, de la misma forma, installar Rake

gem install rake
 
Tambièn instalar Mongrel, escribiendo en la consola de Ruby
 
gem install mongrel"
Finalmente, instalar mysql dentro de Ruby 
gem install mysql

En algunos casos, es necesario instalar lo siguiente:

                                                             gem install i18n -v=0.4.2

Base de Datos

Se pueden usar las siguientes bases de datos:

  • MySQL 5.0 or higher (recommended)
    • make sure to install the C bindings for Ruby that dramatically improve performance. 
    You can get them by running gem install mysql.
    If you have problem installing the mysql gem refer Rails Wiki pages
    • PostgreSQL 8
      • make sure your database datestyle is set to ISO (Postgresql default setting). 
      You can set it using: ALTER DATABASE "redmine_db" SET datestyle="ISO,MDY";
      • some bugs in PostgreSQL 8.4.0 and 8.4.1 affect Redmine behavior (#4259, #4314), 
      they are fixed in PostgreSQL 8.4.2
      • make sure to install the PosgreSQL adapter for Ruby. You can get it by running(one of the following):
        • gem install postgres-pr (native Ruby implementation no more actively maintained by its author, presents issues with 9.x)
        • gem install pg (works with SSL connections, may need development libraries/packages for your OS before it will compile)
          • Ubuntu OS: development libraries can be installed with (or similar): sudo aptitude install libdbd-pg-ruby1.8
    • SQLite 3
    PROCEDIMIENTO DE INSTALACIÓN

    1. Descargar Redmine de aqui
    2. Cree 3 bases de datos llamada redmine, redmine-developer, redmine-test, por ejemplo.
     para MYSQL se usaran los siguientes comandos
      create database redmine character set utf8;
      create user 'redmine'@'localhost' identified by 'my_password';
      grant all privileges on redmine.* to 'redmine'@'localhost';

      3. Extraer Redmine en una nueva carpeta creada en Ruby, llamada apps, por ejemplo. 

      C:\Ruby187\apps\

      4. En la carpeta C:\Ruby187\apps\redmine-1.2.1\config, copiar el archivo database.yml.example y llamarlo database.yml, y editar las propiedades:

      Para MYSQL, modificar las siguientes lineas (segun el nombre de usuario y contraseña que le hayamos dado)

      production:
        adapter: mysql
        database: redmine
        host: localhost
        username: redmine
        password: my_password
       
      Hacer lo mismo con las otras dos bases de datos (developer y test)
      Si el servidor no está corriendo en el puerto por defecto (3306),use esta configuracion:
       
      production:
        adapter: mysql
        database: redmine
        host: localhost
        port: 3307 (o puerto que esté configurado)
        username: redmine
        password: my_password 
       
      4. Instalar unidad de pruebas en Ruby, por si no la tiene, con el siguiente comando: 

           gem install test-unit
       
       5. En algunos casos, es necesario pegar la libreria libmysql.dll el la carpeta de ruby/bin haciendo click acá 
       
      6. Ahora, dentro de la carpeta de Redmine pegada en la de Ruby (escribir en la consola cd carpetaRedmine/), escribir en la consola: 
       
      rake db:migrate
      7.Si está usando Redmine v0.8.7 o versiones posteriores, colocar en la consola
       
      “rake generate_session_store” 
       
      8.  Probar el servidor con Mongrel o con Webrick
       
      Con Webrick  
      "ruby script/server webrick -e production "
      Con Mongrel
      mongrel_rails start
      Y probar en el navegador http://localhost:[port]/ , donde [port] es el puerto en el que abre el servidor (por lo general 3000).
      Se debe  abrir la página principal de Redmine.
      Use la cuenta de administrador por defecto para ingresar: 
      • login: admin
      • password: admin
      You can go to Admin & Settings to modify application settings.
       
      At the command prompt: “gem install win32-service
      At the command prompt: “gem install mongrel_service
      Install Redmine as a Windows service, at the command prompt: “mongrel_rails service::install -N Redmine -c [your redmine folder] -p [portno] -e production“, replacing [your redmine folder] with the full path to the Redmine folder in the filesystem, and the [portno] being the port you’d like redmine to server on, e.g. 80 for standard http port 80.
      If at any time you wish to remove the Redmine windows service (uninstall), you can enter “mongrel_rails service::remove -N Redmine” at the command prompt to remove it.