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ä¸ããããã¸ã§ã¯ããã¦ã¼ã¶ãä½æã§ããã®ãå¬ããã§ãããããããã¡ãã£ã¨ãããã試ãã¦ã¿ããã¨æãã¾ãã