Created
February 6, 2013 09:55
-
-
Save fnobi/4721532 to your computer and use it in GitHub Desktop.
RedmineをApacheのproxy_pass使って公開するまで ref: http://qiita.com/items/3bcdb59ab362923e640f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat /etc/redhat-release | |
| CentOS release 6.2 (Final) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rvm seppuku |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo /etc/init.d/httpd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo yum install mysql-devel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RAILS_ENV=production bundle exec rails server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd redmine | |
| vi Gemfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle install | |
| bundle exec unicorn_rails |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle exec unicorn_rails -D -E production -c config/unicorn.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" # 追加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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