Giter VIP home page Giter VIP logo

redmine_inbg's Introduction

Redmine

Redmine is a flexible project management web application written using Ruby on Rails framework.

More details can be found in the doc directory or on the official website

Redmine installation


Installation on Windows

Install dependencies for redmine

  1. Install postgresql 10.23 via following command:
./postgress.exe --install_runtimes 0
  1. Install rubyinstaller+devkit 3.0

  2. Compile xapian-core and xapian-bindings for windows from here (from bash with unix tools):

cd {folder_with_packages}
tar -xJf {core}.tar.xz
tar -xJf {bindings}.tar.xz
cd {core}
./configure
make
make install
cd ../{bindings}
./configure --with-ruby LDFLAGS='-L{path_to_ruby_folder}/lib' RUBY_LIB={path_to_site_lib} RUBY_LIB_ARCH={path_to_site_lib}
make
make install
  1. Install nginx

Setup configuration for redmine

  1. Create database and user for redmine
CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'my_password' NOINHERIT VALID UNTIL 'infinity';
CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine;
ALTER DATABASE "redmine_db" SET datestyle="ISO,MDY"
  1. Setup database.yml in config folder
production:
  adapter: postgresql
  database: <your_database_name>
  host: <postgres_host>
  username: <postgres_user>
  password: "<postgres_user_password>"
  encoding: utf8
  schema_search_path: <database_schema> (default - public)
  1. Setup nginx congiguration
server {
 listen 3001;
    root C:/redmine/public;

    try_files $uri/index.html $uri @redmine;

    upstream redmine {
        server 127.0.0.1:3000;
 }

 location @redmine {
  proxy_pass http://redmine;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_redirect off;
 }
}
  1. Load submodules with plugins, more information here
git submodule update --init --recursive
  1. Setup config and install dependencies for ruby
bundle config set --local without 'development test'
bundle install
  1. Generate secret token
bundle exec rake generate_secret_token
  1. Migrate and load default data for db
set RAILS_ENV=production
bundle exec rake db:migrate
bundle exec rake redmine:load_default_data
bundle exec rake redmine:plugins:migrate NAME=redmine_dmsf
  1. Run server and nginx
start nginx
bundle exec rails server -u puma -e production

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.