[RUBY] [Cygwin] Run Redmine

Points to remember

--Currently (2020-07-24), bundle is supporting the version upgrade. --Because of this relationship, note the old information `rubygem```, `bundle``` --Use sqlite3 on the assumption that it will be used by individuals.

Download file list

cygwin package list

--Required for rubygem installation - ruby, ruby-devel --Required for bundle install - mysql-devel, libsqlite3-devel --Required to install nokogiri - libxml2-devel, libxslt-devel

Each version

name version installation
ruby 2.6.4p104 cygwin
rubygem 3.1.4 rubygems-3.1.4.tgz
rails 6.0.3.2 gem
redmine 4.1.1 redmine-4.1.1.tar.gz

Installation procedure

rubygems

$ tar xvzf rubygems-3.1.4.tgz
$ cd rubygems-3.1.4
$ ruby setup.rb

-- / usr / bin / gem, / usr / bin / bundle will be installed.

redmine

`GemFile``` is included in `redmine-4.1.1.tgz``` as package information required for the redmine operating environment.

The following starts from HOME

$ tar xvzf src/redmine-4.1.1.tar.gz
$ cd redmine-4.1.1/conf
$ cp configuration.yml.example configuration.yml
$ cp database.yml.example database.yml
$ vi configuration.yml
$ vi database.yml

--configuration.yml settings -- scm_subversion_command Set according to the setting example -- scm_cvs_command Set according to the setting example -- scm_cvs_path_regexp The full path of one cvs repository -- scm_stderr_log_file Set according to the setting example --Database.yml settings --You have disabled mysql2 and enabled sqlite3```. --For one user

Continued after that

$ bundle config without 'development test' --local
$ vi .bundle/config

--If you forget to add --local, it will be saved in ~ / .bundle / config```

Continued after that

$ bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32

--As a result, "GemFile.lock" is created.

Continued after that

$ bundle install
$ bundle update
$ bundle config build.nokogiri --use-system-libraries --local
$ bundle install
$ bundle update
$ bundle exec rake generate_secret_token
$ RAILS_ENV=production bundle exec rake db:migrate
$ RAILS_ENV=production REDMINE_LANG=ja bundle exec rake redmine:load_default_data

Launch remine

bundle exec rails server webrick -e production

Access localhost: 3000

Task

--Installing ImageMagick

reference

State of rubygem installation (only the main points)

$ ruby setup.rb
  Successfully built RubyGem
  Name: bundler
  Version: 2.1.4
  File: bundler-2.1.4.gem
Bundler 2.1.4 installed
RubyGems 3.1.4 installed
Regenerating binstubs
Parsing documentation for rubygems-3.1.4
Installing ri documentation for rubygems-3.1.4

…

------------------------------------------------------------------------------

RubyGems installed the following executables:
        /usr/bin/gem
        /usr/bin/bundle

Ruby Interactive (ri) documentation was installed. ri is kind of like man
pages for Ruby libraries. You may access it like this:
  ri Classname
  ri Classname.class_method
  ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.

Bundle runtime warning

If you run bundle install --without development test following the page you referred to, the following message will be displayed in yellow.

$ bundle install --without development test
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development test'`, and stop using this flag
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.

State of rubygem installation (details)

$ ruby setup.rb
  Successfully built RubyGem
  Name: bundler
  Version: 2.1.4
  File: bundler-2.1.4.gem
Bundler 2.1.4 installed
RubyGems 3.1.4 installed
Regenerating binstubs
Parsing documentation for rubygems-3.1.4
Installing ri documentation for rubygems-3.1.4

=== 3.1.4 / 2020-06-03

Minor enhancements:

* Deprecate rubyforge_project attribute only during build
  time. Pull request #3609 by Josef Šimánek.
* Update links. Pull request #3610 by Josef Šimánek.
* Run CI at 3.1 branch head as well. Pull request #3677 by Josef Šimánek.
* Remove failing ubuntu-rvm CI flow. Pull request #3611 by
  Josef Šimánek.

=== 3.1.3 / 2020-05-05

Minor enhancements:

* Resolver: require NameTuple before use. Pull request #3171 by Olle
  Jonsson.
* Use absolute paths with autoload. Pull request #3100 by David Rodríguez.
* Avoid changing $SOURCE_DATE_EPOCH. Pull request #3088 by Ellen Marie
  Dash.
* Use Bundler 2.1.4. Pull request #3072 by Hiroshi SHIBATA.
* Add tests to check if Gem.ruby_version works with ruby git master.
  Pull request #3049 by Yusuke Endoh.

Bug fixes:

* Fix platform comparison check in #contains_requirable_file?. Pull
  request #3495 by Benoit Daloze.
* Improve gzip errors logging. Pull request #3485 by David Rodríguez.
* Fix incorrect `gem uninstall --all` message. Pull request #3483 by David
  Rodríguez.
* Fix incorrect bundler version being required. Pull request #3458 by
  David Rodríguez.
* Fix gem install from a gemdeps file with complex dependencies.
  Pull request #3054 by Luis Sagastume.

=== 3.1.2 / 2019-12-20

Minor enhancements:

* Restore non prompting `gem update --system` behavior. Pull request #3040
  by David Rodríguez.
* Show only release notes for new code installed. Pull request #3041 by
  David Rodríguez.
* Inform about installed `bundle` executable after `gem update --system`.
  Pull request #3042 by David Rodríguez.
* Use Bundler 2.1.2. Pull request #3043 by SHIBATA Hiroshi.

Bug fixes:

* Require `uri` in source.rb. Pull request #3034 by mihaibuzgau.
* Fix `gem update --system --force`. Pull request #3035 by David
  Rodríguez.
* Move `require uri` to source_list. Pull request #3038 by mihaibuzgau.

=== 3.1.1 / 2019-12-16

Bug fixes:

* Vendor Bundler 2.1.0 again. The version of Bundler with
  RubyGems 3.1.0 was Bundler 2.1.0.pre.3. Pull request #3029 by
  SHIBATA Hiroshi.


------------------------------------------------------------------------------

RubyGems installed the following executables:
        /usr/bin/gem
        /usr/bin/bundle

Ruby Interactive (ri) documentation was installed. ri is kind of like man
pages for Ruby libraries. You may access it like this:
  ri Classname
  ri Classname.class_method
  ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.

Link list

Recommended Posts

[Cygwin] Run Redmine
Run JamWiki