2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

環境構築

Last updated at Posted at 2018-06-07

localに開発環境構築する場合

brew

rbenv

rubyのversionは.ruby-versionで確認 

rbenv versions
rbenv install 2.5.1
rbenv local 2.5.1

bundlerのinstall

gem install bundler

postgresql

brew install postgresql

postgresqlの起動

pg_ctl -D /usr/local/var/postgres start

imagemagick

brew install imagemagick

新規の場合

railsのinstall

gem install rails
通らない場合はsudoつける

起動

rails new プロジェクト名 --database=postgresql
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rails s

新規じゃない場合

git clone
git clone プロジェクト名
bundle install
yarn install

pg_ctl -D /usr/local/var/postgres start

bundle exec rake db:create

bundle exec rake db:migrate

bundle exec rake db:seed

bundle exec rails s

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?