LoginSignup
0
0

More than 5 years have passed since last update.

ローカル(Mac) ※vagrantではない。でGitHubからclone後、アプリを見る場合の作業手順 ※自分用メモ

Last updated at Posted at 2016-07-10

ローカル(Mac) ※vagrantではない。でGitHubからclone後、アプリを見る場合の作業手順

ローカルの環境構築ができていることが前提
環境構築は以下サイトを見て行う。
http://qiita.com/dawn_628/items/00a92df3c01db60daeae

・以下サイトで、Homebrewを使ってPostgreSQLをMacにインストールする。
且つ、自動起動の設定を行う。
http://qiita.com/tstomoki/items/0f1a930bd42a8e1fdaac

※PostgreSQLの自動起動設定
自動起動リストにPostgreSQLの追加(以下コマンドはPostgreSQLのバージョン注意!! 自分は9.5。psql --versionを行ってから設定する)
psql --version # PostgreSQLのバージョンを確認
cp /usr/local/Cellar/postgresql/9.3.2(バージョンを入力)/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/

その後の作業、
・git clone
・bundle install --path vendor/bundle
※できなければgem install bundler
・bundle exec rake db:create db:migrate
・bundle exec rails s

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0