LoginSignup
3
3

More than 5 years have passed since last update.

Rails 環境構築メモ

Last updated at Posted at 2014-08-23

1回だけ

brew install direnv
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
echo 'Spring.watch_method = :listen' >> ~/.spring.rb # web-consoleと組み合わせると落ちる。設定項目が増えたら変えるかも

アプリごと

rbenv local #{version}
cat <<EOF >> Gemfile
group :development do
gem 'spring'
gem 'listen'
gem 'web-console'
end
EOF
bundle --path vendor/bundle
rbenv rehash
bundle exec spring binstub --all
echo 'export PATH=$PWD/bin:$PATH' > .envrc

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