FreeBSD上ã§Redmineを試ã—ã¦ã¿ã‚‹
2ヶ月ã»ã©Tracを試ã—ã¦ã¿ã¾ã—ãŸãŒã€1ã¤ã®ã‚µã‚¤ãƒˆã§1ã¤ã®ãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã—ã‹åŸºæœ¬çš„ã«ç®¡ç†ã§ããªã„ã¨ã„ã†ã¨ã“ã‚ãŒã©ã†ã—ã¦ã‚‚使ã„ã¥ã‚‰ã‹ã£ãŸã§ã™ã€‚代ã‚ã‚Šã«ãªã‚‹ã‚‚ã®ã‚’探ã—ã¦ã„ãŸã¨ã“ã‚ã€Redmineã¨ã„ã†ã®ãŒè¤‡æ•°ãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã‚’管ç†ã§ãã‚‹ã¨ã„ã†ãã†ãªã®ã§è©¦ã—ã¦ã¿ã¾ã—ãŸã€‚
Redmineã¯Jean-Philippe Langæ°ã«ã‚ˆã£ã¦é–‹ç™ºãƒ»å…¬é–‹ã•ã‚Œã¦ã„るオープンソースソフトウェアã§ã™ã€‚RoRã§æ§‹ç¯‰ã•ã‚Œã¦ãŠã‚Šã€è¤‡æ•°ã®ãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã‚’管ç†ã™ã‚‹ã“ã¨ãŒã§ãã‚‹ã®ãŒç‰¹å¾´ã§ã™ã€‚ç¾åœ¨ã®Redmineã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¯4月28æ—¥(フランス時間)ã«å…¬é–‹ã•ã‚ŒãŸv0.7.0ã§ã€GNU GENERAL PUBLIC LICENSE Version 2ã®ã‚‚ã¨ã§å…¬é–‹ã•ã‚Œã¦ã„ã¾ã™ã€‚
実行環境ã¯æ¬¡ã®ã¨ãŠã‚Šã§ã™ã€‚
- FreeBSD 8.0-CURRENT : Fri Apr 21 11:55:00 JST 2008 (i386)
- Apache-2.2.8
- Subversion-1.4.6_1
- SQLite 3.5.6
- å¿…è¦ãªã‚¢ãƒ—リケーションをインストール
- Redmineã®ãƒ€ã‚¦ãƒ³ãƒãƒ¼ãƒ‰
- SQLiteã§ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ä½œæˆ
- database.ymlã®ä¿®æ£
- rake
- 動作確èªãƒ†ã‚¹ãƒˆ
- Apacheã®è¨å®š
インストールã«ã¤ã„ã¦
ã‚’å‚考ã«ã•ã›ã¦ã„ãŸã ãã¾ã—ãŸã€‚ã‚ã‚ŠãŒã¨ã†ã”ã–ã„ã¾ã™ã€‚å¿…è¦ãªã‚¢ãƒ—リケーションをインストール
rake時ã«å¿…è¦ãªã‚¢ãƒ—リケーションを先ã«portsã‹ã‚‰ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¦ãŠãã¾ã™ã€‚Redmineã®ãƒ€ã‚¦ãƒ³ãƒãƒ¼ãƒ‰
リãƒã‚¸ãƒˆãƒªã‹ã‚‰ãƒã‚§ãƒƒã‚¯ã‚¢ã‚¦ãƒˆã—ã¾ã™ã€‚# svn checkout http://redmine.rubyforge.org/svn/trunk/
SQLiteã§ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ä½œæˆ
SQLite3ã§ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚’作æˆã—ã¾ã™ã€‚# sqlite3 redmine SQLite version 3.5.6 Enter ".help" for instructions sqlite > .exit
database.ymlã®ä¿®æ£
# cp ./trunk/config/database.yml.example database.yml # vi database.yml
database.yml
production: adapter: sqlite3 dbfile:db/redmine timeout: 5000
rake
# rake db:migrate RAILS_ENV="production" # rake redmine:load_default_data RAILS_ENV="production"
動作確èªãƒ†ã‚¹ãƒˆ
# ruby script/server -e production
Webブラウザ㧠http://localhost:3000/ ã«ã‚¢ã‚¯ã‚»ã‚¹ã—ã€å‹•ä½œã—ã¦ã„ãŸã‚‰OKã§ã™ã€‚
Apacheã®è¨å®š
Phusion Passengerを使用ã—ã€Apache上ã§Redmineを動作ã•ã›ã‚‹è¨å®šã‚’ã—ã¾ã™ã€‚# gem install rails --version 2.0.2 # gem install passenger
特ã«å•é¡ŒãŒãªã‘ã‚Œã°ã€æ¬¡ã®ã‚ˆã†ãªãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ãŒè¡¨ç¤ºã•ã‚Œã¾ã™ã€‚
The Apache 2 module was successfully installed. Please edit your Apache configuration file, and add these lines: LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/ext/apache2/mod_passenger.so RailsSpawnServer /usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/bin/passenger-spawn-server RailsRuby /usr/local/bin/ruby18 After you restart Apache, you are ready to deploy any number of Ruby on Rails applications on Apache, without any further Ruby on Rails-specific configuration! Press ENTER to continue. -------------------------------------------- Deploying a Ruby on Rails application: an example Suppose you have a Ruby on Rails application in /somewhere. Add a virtual host to your Apache configuration file, and set its DocumentRoot to /somewhere/public, like this: <VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public </VirtualHost> And that's it! You may also want to check the Users Guide for security and optimization tips and other useful information: /usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/doc/Users guide.html Enjoy Passenger, a product of Phusion (www.phusion.nl) :-) http://www.modrails.com/
メッセージã®ã¨ãŠã‚Šã«httpd.confã¨httpd-vhosts.confã«è¿½è¨˜ã—ã¾ã™ã€‚ã“ã“ã§ã¯VirtualHostã®Portã‚’8080ã«å¤‰æ›´ã—ã¦ã„ã¾ã™ã€‚
Listen 8080 NameVirtualHost *:8080 <VirtualHost *:8080> ServerName redmine.sweets.localhost DocumentRoot "/home/redmine/public" <Directory /> Options Indexed FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>
日本語ã®è¡¨ç¤ºç’°å¢ƒãŒã‚らã‹ã˜ã‚組ã¾ã‚Œã¦ã„ã‚‹ãŸã‚ã€ç°¡å˜ãªè¨å®šã§ã™ãã«æ—¥æœ¬èªžã§ä½¿ã£ã¦ã¿ã‚‹ã“ã¨ã‚‚å¯èƒ½ã§ã™ã€‚Web上ã‹ã‚‰ãƒ—ãƒã‚¸ã‚§ã‚¯ãƒˆã‚‚ユーザも作æˆã§ãã‚‹ã®ãŒå¬‰ã—ã„ã§ã™ã。ã“ã‚Œã‹ã‚‰ã¡ã‚‡ã£ã¨ã„ã‚ã„ã‚試ã—ã¦ã¿ãŸã„ã¨æ€ã„ã¾ã™ã€‚