Skip to content

Instantly share code, notes, and snippets.

@fnobi
Created February 6, 2013 09:55
Show Gist options
  • Save fnobi/4721532 to your computer and use it in GitHub Desktop.
Save fnobi/4721532 to your computer and use it in GitHub Desktop.
RedmineをApacheのproxy_pass使って公開するまで ref: http://qiita.com/items/3bcdb59ab362923e640f
$ cat /etc/redhat-release
CentOS release 6.2 (Final)
rvm seppuku
sudo /etc/init.d/httpd restart
sudo yum install mysql-devel
RAILS_ENV=production bundle exec rails server
cd redmine
vi Gemfile
bundle install
bundle exec unicorn_rails
bundle exec unicorn_rails -D -E production -c config/unicorn.rb
gem 'rails', '3.2.11'
gem "jquery-rails", "~> 2.0.2"
gem "i18n", "~> 0.6.0"
gem "coderay", "~> 1.0.6"
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
gem "builder", "3.0.0"
gem "unicorn" # 追加
<VirtualHost *:80>
ServerName "redmine.fnobi.com"
DocumentRoot "/var/www/redmine/public"
ProxyPass / http://localhost:2007/
ProxyPassReverse / http://localhost:2007/
ErrorLog /var/log/httpd/redmine-error.log
LogLevel warn
CustomLog /var/log/httpd/redmine-access.log combined
</VirtualHost>
# Minimal sample configuration file for Unicorn (not Rack) when used
# with daemonization (unicorn -D) started in your working directory.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
# See also http://unicorn.bogomips.org/examples/unicorn.conf.rb for
# a more verbose configuration using more features.
listen 2007 # by default Unicorn listens on port 8080
worker_processes 2 # this should be >= nr_cpus
pid "/var/www/redmine/log/unicorn.pid"
stderr_path "/var/www/redmine/log/unicorn.log"
stdout_path "/var/www/redmine/log/unicorn.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment