Vagrant使ったメモ.
とりあえず必要なソースをgithubからclone.
その後にvagrant使って環境設定.
$ vagrant box add hoge hoge.box
$ vagrant init hoge
で,こんなメッセージがでるんで.
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
Vagrantファイルのポート番号を指定するとこだけ3000に変更.
そして起動.
$ vagrant up
$ vagrant ssh
そこからはrailsのディレクトリに移動して,
bundle install --path vendor/bundle
bundle exec rake db:migrate
bundle exec rails server
とりえずポート番号3000指定でアクセス.
でおわり.