2011-11-14 4 views
1

Redmine을 Centos 서버에 설치하려고합니다.서버에서 redmine 실행 문제

이미 PHP와 MySQL이 설치되어 있습니다. redmine을 설치하려고하는 호스트의 도메인 이름은 http://iteny.com/dev입니다.

제대로 작동하려면 레일을 시작할 수없는 것 같습니다. 여기

서버 내 루비 설정입니다 :

  • 루비 버전 1.8.7
  • 레일 버전 2.3.11
  • 루비 버전 1.6.2
  • 랙 버전 1.1.1
  • 을 보석
  • MySQL 버전 여기 5.1.56

dispatch.cgi 파일 (전입니다 N public/ 폴더) :

#!/usr/local/bin/ruby 
require "/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/dispatcher" 

#require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) 
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: 
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired 
require "dispatcher" 
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) 
Dispatcher.dispatch 

여기 environment.rb 파일 config/ 폴더에 (이다) : 내 환경에 대한 자세한 정보가 필요하면

# you don't control web/app server and can't set it the proper way 
ENV['RAILS_ENV'] ||= 'production' 

# Specifies gem version of Rails to use when vendor/rails is not present 
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION 

# Bootstrap the Rails environment, frameworks, and default configuration 
require File.join(File.dirname(__FILE__), 'boot') 

# Load Engine plugin if available 
begin 
require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot') 
rescue LoadError 
    # Not available 
end 

Rails::Initializer.run do |config| 
    # Settings in config/environments/* take precedence those specified here 

    # Skip frameworks you're not going to use 
    # config.frameworks -= [ :action_web_service, :action_mailer ] 

    # Add additional load paths for sweepers 
    config.autoload_paths += %W(#{RAILS_ROOT}/app/sweepers) 

    # Force all environments to use the same logger level 
    # (by default production uses :info, the others :debug) 
    # config.log_level = :debug 

    # Enable page/fragment caching by setting a file-based store 
    # (remember to create the caching directory and make it readable to the application) 
    # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" 

    # Activate observers that should always be running 
    # config.active_record.observers = :cacher, :garbage_collector 
    config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer 

    # Make Active Record use UTC-base instead of local time 
    # config.active_record.default_timezone = :utc 

    # Use Active Record's schema dumper instead of SQL when creating the test database 
    # (enables use of different database adapters for development and test environments) 
    # config.active_record.schema_format = :ruby 

    # Deliveries are disabled by default. Do NOT modify this section. 
    # Define your email configuration in configuration.yml instead. 
    # It will automatically turn deliveries on 
    config.action_mailer.perform_deliveries = false 

    config.gem 'rubytree', :lib => 'tree' 
    config.gem 'coderay', :version => '~>0.9.7' 

    # Load any local configuration that is kept out of source control 
    # (e.g. gems, patches). 
    if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) 
    instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb')) 
    end 
end 

- 그냥 물어!

답변

1

제대로 작동하려면 레일을 시작할 수없는 것 같습니다.

어떤 오류가 발생합니까? 무슨 일이야? 너는 간과했다.

Apache 또는 Nginx에서 Rails 앱을 호스팅하는 가장 쉬운 방법은 Passenger을 사용하는 것입니다. 그것을 설치하면 몇 분 안에 가동되어야합니다!

+0

문제는 레일 서버 webrick을 테스트 할 때 http : //0.0.0.0:3000에서 실행되기 때문에 테스트 할 수 없다는 것입니다. 그리고 웹 사이트는 웹 사이트로 컴파일하는 대신 폴더를 보여줍니다. 승객에 관한 부분은 내가 그들을 설치했다고 생각합니다. -bash-3.2 # find/-name passenger /home/virtfs/iteny/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.9/bin/passenger /home/virtfs/iteny/usr/local/bin/passenger /usr/local/lib/gems/1.8/gems/passenger-3.0.9/bin/passenger /usr/local/bin/passenger – Andrey

+0

응? 원하는 경우 localhost : 3000으로 이동할 수 있습니다. 그러나 WEBrick은 개발에는 적합하지만 제작에는 적합하지 않습니다. 승객 웹 사이트의 안내에 따라 승객의 업무를 처리하십시오. –