ユーザ用ツール

サイト用ツール


temporary:asakusasatellite:install

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
temporary:asakusasatellite:install [2015/06/08 01:45] – temporary:asakusasatellite renamed to temporary:asakusasatellite:install clownclowntemporary:asakusasatellite:install [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
-<code> +====== Install ======
-■ リポジトリ +
-# rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm +
-# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm +
-# rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm +
-# yum -y update+
  
-■ 開発ツール+===== リポジトリ ===== 
 +{{section>centos:yum:quick_repo#centos_6x}}
  
 +===== 開発ツール =====
 +<code>
 # yum -y install openssl-devel gcc-c++ git # yum -y install openssl-devel gcc-c++ git
- +</code> 
-■ MongoDB+===== MongoDB ===== 
 +<code>
 # vi /etc/yum.repos.d/mongodb.repo # vi /etc/yum.repos.d/mongodb.repo
  
行 22: 行 21:
 # chkconfig mongod on # chkconfig mongod on
 # service mongod start # service mongod start
- +</code> 
-■ Apache、etc+===== Apache、etc ===== 
 +<code>
 # yum -y install httpd libcurl-devel httpd-devel apr-devel apr-util-devel # yum -y install httpd libcurl-devel httpd-devel apr-devel apr-util-devel
- +</code> 
-■ Ruby、etc +===== Ruby、etc ===== 
- +==== rbenv ==== 
-■■ rbenv複数のRubyバージョンをインストールして、それぞれのRuby環境を切り替える+複数のRubyバージョンをインストールして、それぞれのRuby環境を切り替える 
 +<code>
 # cd /usr/local/ # cd /usr/local/
 # git clone https://github.com/sstephenson/rbenv.git # git clone https://github.com/sstephenson/rbenv.git
行 46: 行 47:
 # source /etc/profile.d/rbenv.sh # source /etc/profile.d/rbenv.sh
 # which rbenv # which rbenv
- +</code> 
-■■ ruby+==== ruby ====
 ※AsakusaSatelliteがjson 1.8.0を要求するが、ruby 2.2.2などではインストールできないのでダウングレード ※AsakusaSatelliteがjson 1.8.0を要求するが、ruby 2.2.2などではインストールできないのでダウングレード
 +<code>
 # rbenv install 2.1.0 # rbenv install 2.1.0
 # rbenv global 2.1.0 # rbenv global 2.1.0
 # ruby -v # ruby -v
 ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
- +</code> 
-■■ bundlerプロジェクト内で使うRubyのパッケージを管理する。Gemfileにパッケージ名、バージョンなどを記述してgemのライブラリを管理する+==== bundler ==== 
 +プロジェクト内で使うRubyのパッケージを管理する。Gemfileにパッケージ名、バージョンなどを記述してgemのライブラリを管理する 
 +<code>
 # gem install bundler --no-rdoc --no-ri # gem install bundler --no-rdoc --no-ri
 Fetching: bundler-1.9.9.gem (100%) Fetching: bundler-1.9.9.gem (100%)
 Successfully installed bundler-1.9.9 Successfully installed bundler-1.9.9
 1 gem installed 1 gem installed
- +</code> 
-■■ passengerApacheなど、webサーバ上でRubyのwebアプリを動作させるモジュール +==== passenger ==== 
-■■■ インストール+Apacheなど、webサーバ上でRubyのwebアプリを動作させるモジュール 
 +=== インストール === 
 +<code>
 # gem install passenger --no-rdoc --no-ri # gem install passenger --no-rdoc --no-ri
- +</code> 
-■■■ Apacheモジュールのビルドとインストール+=== Apacheモジュールのビルドとインストール === 
 +<code>
 # passenger-install-apache2-module # passenger-install-apache2-module
 Welcome to the Phusion Passenger Apache 2 module installer, v5.0.8. Welcome to the Phusion Passenger Apache 2 module installer, v5.0.8.
行 180: 行 186:
  
 Phusion Passenger is a trademark of Hongli Lai & Ninh Bui. Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.
- +</code> 
-■■■ Apacheの設定+=== Apacheの設定 ===
 ※AsakusaSatelliteを「ドキュメントルート/as」に設置する前提で。 ※AsakusaSatelliteを「ドキュメントルート/as」に設置する前提で。
 +<code>
 # vi /etc/httpd/conf.d/asakusasatellite.conf # vi /etc/httpd/conf.d/asakusasatellite.conf
  
行 194: 行 200:
 RailsEnv production RailsEnv production
 RailsBaseURI /as RailsBaseURI /as
- +</code> 
-■ AsakusaSatellite+===== AsakusaSatellite =====
 http://www.codefirst.org/AsakusaSatellite/ http://www.codefirst.org/AsakusaSatellite/
 開発者向けのリアルタイムチャットアプリケーション 開発者向けのリアルタイムチャットアプリケーション
-■■ インストール+==== インストール ==== 
 +<code>
 # cd /tmp/ # cd /tmp/
 # wget https://github.com/codefirst/AsakusaSatellite/archive/v0.9.0.tar.gz # wget https://github.com/codefirst/AsakusaSatellite/archive/v0.9.0.tar.gz
行 205: 行 212:
  
 # cd /var/AsakusaSatellite/ # cd /var/AsakusaSatellite/
- +</code> 
-■■■ /var/AsakusaSatellite/Gemfileを参考に、プロジェクト(/var/AsakusaSatellite/)配下に必要なライブラリをインストールする+=== ライブラリインストール === 
 +/var/AsakusaSatellite/Gemfileを参考に、プロジェクト(/var/AsakusaSatellite/)配下に必要なライブラリをインストールする 
 +<code>
 # bundle install --path .bundle --without development test # bundle install --path .bundle --without development test
  
行 217: 行 226:
 --- ---
 >   config.serve_static_assets = true >   config.serve_static_assets = true
- +</code> 
-■■■ プロジェクト(/var/AsakusaSatellite/)配下のライブラリを読み込んでrake実行+=== rake実行 === 
 +プロジェクト(/var/AsakusaSatellite/)配下のライブラリを読み込んでrake実行 
 +<code>
 # bundle exec rake assets:precompile RAILS_ENV=production # bundle exec rake assets:precompile RAILS_ENV=production
- +</code> 
-■■ 認証設定Twitter⇒Redmine+==== 認証設定 ==== 
 +Twitter⇒Redmine 
 +<code>
 # cp /var/AsakusaSatellite/config/filter_intra.yml /var/AsakusaSatellite/config/filter_intra.yml.bk # cp /var/AsakusaSatellite/config/filter_intra.yml /var/AsakusaSatellite/config/filter_intra.yml.bk
 # vi /var/AsakusaSatellite/config/filter_intra.yml # vi /var/AsakusaSatellite/config/filter_intra.yml
  
 +21c21
 +<  - dir: as_global_js_css
 +---
 +> # - dir: as_global_js_css
 23c23 23c23
 < # - dir: as_twitterauth_plugin < # - dir: as_twitterauth_plugin
行 266: 行 283:
 --- ---
 >     "#{first} #{last}" >     "#{first} #{last}"
- +</code> 
-■■ デスクトップ通知用設定+==== デスクトップ通知用設定 ==== 
 +<code>
 # cp /var/AsakusaSatellite/config/message_pusher.yml /var/AsakusaSatellite/config/message_pusher.yml.bk # cp /var/AsakusaSatellite/config/message_pusher.yml /var/AsakusaSatellite/config/message_pusher.yml.bk
 # vi /var/AsakusaSatellite/config/message_pusher.yml # vi /var/AsakusaSatellite/config/message_pusher.yml
行 277: 行 295:
 >   http: http://localhost:3002/http >   http: http://localhost:3002/http
 >   web_socket: ws://localhost:3002/websocket >   web_socket: ws://localhost:3002/websocket
- +</code> 
-■■ デスクトップ通知用socky起動(プロジェクトローカルのthinでsocdkyを起動) +==== socky ==== 
-thinウェブサーバ(https://github.com/macournoyer/thin) +デスクトップ通知用socky起動(プロジェクトローカルのthinでsocdkyを起動) 
-  # thin -R RackFile -pPORT -tTimeout(SEC) start & +  thin \\ ウェブサーバ(https://github.com/macournoyer/thin) \\ # thin -R RackFile -pPORT -tTimeout(SEC) start & 
-SockyRuby向けWebSocketサーバ(https://github.com/socky) +  Socky \\ Ruby向けWebSocketサーバ(https://github.com/socky) \\ # bundle exec thin -R socky/config.ru -p3002 -t0 start & 
-# bundle exec thin -R socky/config.ru -p3002 -t0 start & +=== 起動スクリプト === 
- +<code>
-■■■ 起動スクリプト +
 # vi /etc/init.d/socky # vi /etc/init.d/socky
  
行 355: 行 371:
 # /etc/init.d/socky start # /etc/init.d/socky start
 # chkconfig socky on # chkconfig socky on
- +</code> 
-■■ ドキュメントへのシンボリックリンク作成+==== ドキュメントへのシンボリックリンク作成 ==== 
 +<code>
 # cd /var/www/html # cd /var/www/html
 # ln -s /var/AsakusaSatellite/public as # ln -s /var/AsakusaSatellite/public as
 # ln -s /var/AsakusaSatellite/public/assets/ assets # ln -s /var/AsakusaSatellite/public/assets/ assets
- +</code> 
-■■ 権限設定+==== 権限設定 ==== 
 +<code>
 # chown -R apache.apache /var/AsakusaSatellite # chown -R apache.apache /var/AsakusaSatellite
 # chmod -R 777 /var/AsakusaSatellite/tmp # chmod -R 777 /var/AsakusaSatellite/tmp
 # chmod -R 777 /var/AsakusaSatellite/public/upload # chmod -R 777 /var/AsakusaSatellite/public/upload
- +</code> 
-■ apache(再)起動+===== apache(再)起動 ===== 
 +<code>
 # /etc/init.d/httpd restart # /etc/init.d/httpd restart
- 
- 
- 
- 
- 
- 
 </code> </code>
temporary/asakusasatellite/install.1433727922.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)