Skip to content

Serverside setup

uniom edited this page Jun 30, 2013 · 42 revisions

1.rvmをインストール

rvmインストール手順

2.rvmのpathを通す

.bashrcの以下を追記

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" $ source "$HOME/.rvm/scripts/rvm"

3.rubyをインストール

$ rvm get head
$ rvm reload
$ rvm install 1.9.3

3. リポジトリからclone

$ git clone -depth 1 [email protected]:Araki/CouplingServer.git
$ cd CouplingServer

4. bundle install

$ bundle install --path=vendor/bundle

5. mysqlのインストール

mysqlダウンロードサイト

6. mysqlの起動

$ /usr/local/mysql/support-files/mysql.server start  

7. マイグレーション

$ bundle exec rake db:migrate

8. WEBrick(webサーバ)起動

$ bundle exec rails server
Clone this wiki locally