Aktiva-V2のサーバ用リポジトリです。
- Xcode Command line tools
- Homebrew
- rbenv
- Ruby 2.4.1
- Ruby on Rails 5.1.2
- bundler
- mysql2 0.4.8
- editorconfig plugin
AppStoreからXcodeをインストールし、以下のコマンドを実行する。
xcode-select --installruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update
brew install rbenv ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profilerbenv install 2.4.1gem install rails -v 5.1.2gem install bundlerbrew install mysqlここからエディタに合わせたものをインストールすること。
- 次のコマンドを実行する。
git clone git@github.com:cyder-akashi/Aktiva-V2-Server.git
cd Aktiva-V2-Server- Gemライブラリをインストールする
bundle install --path=vendor/bundle- MySqlを起動する
mysql.server start- Databaseを作成する
bundle exec rake db:migrate
bundle exec rake db:seed- サーバを起動する
rails server