temporary:asakusasatellite:install
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| temporary:asakusasatellite:install [2015/06/08 01:45] – temporary:asakusasatellite renamed to temporary:asakusasatellite:install clownclown | temporary:asakusasatellite:install [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | < | + | ====== Install ====== |
| - | ■ リポジトリ | + | |
| - | # rpm -Uvh http:// | + | |
| - | # rpm -Uvh http:// | + | |
| - | # rpm -Uvh http:// | + | |
| - | # yum -y update | + | |
| - | ■ 開発ツール | + | ===== リポジトリ ===== |
| + | {{section> | ||
| + | ===== 開発ツール ===== | ||
| + | < | ||
| # yum -y install openssl-devel gcc-c++ git | # yum -y install openssl-devel gcc-c++ git | ||
| - | + | </ | |
| - | ■ MongoDB | + | ===== MongoDB |
| + | < | ||
| # vi / | # vi / | ||
| 行 22: | 行 21: | ||
| # chkconfig mongod on | # chkconfig mongod on | ||
| # service mongod start | # service mongod start | ||
| - | + | </ | |
| - | ■ Apache、etc | + | ===== Apache、etc |
| + | < | ||
| # 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 | ||
| - | + | </ | |
| - | ■ Ruby、etc | + | ===== Ruby、etc |
| - | + | ==== rbenv ==== | |
| - | ■■ | + | 複数のRubyバージョンをインストールして、それぞれのRuby環境を切り替える |
| + | < | ||
| # cd /usr/local/ | # cd /usr/local/ | ||
| # git clone https:// | # git clone https:// | ||
| 行 46: | 行 47: | ||
| # source / | # source / | ||
| # which rbenv | # which rbenv | ||
| - | + | </ | |
| - | ■■ | + | ==== ruby ==== |
| ※AsakusaSatelliteがjson 1.8.0を要求するが、ruby 2.2.2などではインストールできないのでダウングレード | ※AsakusaSatelliteがjson 1.8.0を要求するが、ruby 2.2.2などではインストールできないのでダウングレード | ||
| + | < | ||
| # 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] | ||
| - | + | </ | |
| - | ■■ | + | ==== bundler |
| + | プロジェクト内で使うRubyのパッケージを管理する。Gemfileにパッケージ名、バージョンなどを記述してgemのライブラリを管理する | ||
| + | < | ||
| # 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 | ||
| - | + | </ | |
| - | ■■ | + | ==== passenger |
| - | ■■■ | + | Apacheなど、webサーバ上でRubyのwebアプリを動作させるモジュール |
| + | === インストール | ||
| + | < | ||
| # gem install passenger --no-rdoc --no-ri | # gem install passenger --no-rdoc --no-ri | ||
| - | + | </ | |
| - | ■■■ | + | === Apacheモジュールのビルドとインストール |
| + | < | ||
| # 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. | ||
| - | + | </ | |
| - | ■■■ | + | === Apacheの設定 |
| ※AsakusaSatelliteを「ドキュメントルート/ | ※AsakusaSatelliteを「ドキュメントルート/ | ||
| + | < | ||
| # vi / | # vi / | ||
| 行 194: | 行 200: | ||
| RailsEnv production | RailsEnv production | ||
| RailsBaseURI /as | RailsBaseURI /as | ||
| - | + | </ | |
| - | ■ AsakusaSatellite | + | ===== AsakusaSatellite |
| http:// | http:// | ||
| 開発者向けのリアルタイムチャットアプリケーション | 開発者向けのリアルタイムチャットアプリケーション | ||
| - | ■■ | + | ==== インストール |
| + | < | ||
| # cd /tmp/ | # cd /tmp/ | ||
| # wget https:// | # wget https:// | ||
| 行 205: | 行 212: | ||
| # cd / | # cd / | ||
| - | + | </ | |
| - | ■■■ | + | === ライブラリインストール === |
| + | / | ||
| + | < | ||
| # bundle install --path .bundle --without development test | # bundle install --path .bundle --without development test | ||
| 行 217: | 行 226: | ||
| --- | --- | ||
| > | > | ||
| - | + | </ | |
| - | ■■■ | + | === rake実行 === |
| + | プロジェクト(/ | ||
| + | < | ||
| # bundle exec rake assets: | # bundle exec rake assets: | ||
| - | + | </ | |
| - | ■■ | + | ==== 認証設定 |
| + | Twitter⇒Redmine | ||
| + | < | ||
| # cp / | # cp / | ||
| # vi / | # vi / | ||
| + | 21c21 | ||
| + | < - dir: as_global_js_css | ||
| + | --- | ||
| + | > # - dir: as_global_js_css | ||
| 23c23 | 23c23 | ||
| < # - dir: as_twitterauth_plugin | < # - dir: as_twitterauth_plugin | ||
| 行 266: | 行 283: | ||
| --- | --- | ||
| > "# | > "# | ||
| - | + | </ | |
| - | ■■ | + | ==== デスクトップ通知用設定 |
| + | < | ||
| # cp / | # cp / | ||
| # vi / | # vi / | ||
| 行 277: | 行 295: | ||
| > http: http:// | > http: http:// | ||
| > | > | ||
| - | + | </ | |
| - | ■■ | + | ==== socky ==== |
| - | - thin:ウェブサーバ(https:// | + | デスクトップ通知用socky起動(プロジェクトローカルのthinでsocdkyを起動) |
| - | | + | |
| - | - Socky:Ruby向けWebSocketサーバ(https:// | + | |
| - | # bundle exec thin -R socky/ | + | === 起動スクリプト |
| - | + | < | |
| - | ■■■ | + | |
| # vi / | # vi / | ||
| 行 355: | 行 371: | ||
| # / | # / | ||
| # chkconfig socky on | # chkconfig socky on | ||
| - | + | </ | |
| - | ■■ | + | ==== ドキュメントへのシンボリックリンク作成 |
| + | < | ||
| # cd / | # cd / | ||
| # ln -s / | # ln -s / | ||
| # ln -s / | # ln -s / | ||
| - | + | </ | |
| - | ■■ | + | ==== 権限設定 |
| + | < | ||
| # chown -R apache.apache / | # chown -R apache.apache / | ||
| # chmod -R 777 / | # chmod -R 777 / | ||
| # chmod -R 777 / | # chmod -R 777 / | ||
| - | + | </ | |
| - | ■ apache(再)起動 | + | ===== apache(再)起動 |
| + | < | ||
| # / | # / | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| </ | </ | ||
temporary/asakusasatellite/install.1433727922.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)
