Upgrade to Pro — share decks privately, control downloads, hide ads and more …

久々のRailsプロジェクトで導入した開発環境

naoty
February 18, 2015

 久々のRailsプロジェクトで導入した開発環境

naoty

February 18, 2015
Tweet

More Decks by naoty

Other Decks in Programming

Transcript

  1. Tips: vagrant-exec % vagrant plugin install vagrant-exec % vbin/rails s

    Vagrant.configure(2) do |config| config.exec.commands = %w(rails) config.exec.binstubs_path = “vbin” end
  2. lib/tasks/seeds.rake task :countries => %i(environment) do create(:countries) end task :prefectures

    => %i(environment countries) do create(:prefectures, country: Country.first) end task :cities => %i(environment prefectures) do create(:cities, prefecture: Prefecture.first) end task :users => %i(environment cities) do create(:users, city: City.first) end % rake seeds:users
  3. ·ͱΊ • Vagrant + Chef soloͰ౷Ұ͞Εͨ։ൃ؀ڥ • FactoryGirlΛ࢖ͬͨRakeλεΫͰෳࡶͳ։ൃσʔ λͷηοτΞοϓ •

    brancherͰbranchؒͷεΩʔϚͷҧ͍ʹΑΔτϥ ϒϧΛճආ • rubocopͰ࠷௿ݶͷ඼࣭Λ୲อ