-
Notifications
You must be signed in to change notification settings - Fork 7
Setup dev env
ZHENG Tao edited this page Feb 2, 2018
·
4 revisions
You need install & configure vagrant before run the commands below
vagrant up #launch the vm
vagrant ssh #connect to the vm via ssh, normally, your project code could be found under /vagrant/
some post-installation had been configured in bootstrap.sh
sudo rvm install ruby
sudo apt-get install nodejs -y
gem install rails
bin/bundle install
rails s(server)
To avoid vm block the port, maybe you need to use public ip instead of localhost
rails s(server) -b 0.0.0.0
since 0.0.0.0 is a broadcast ip
visit localhost:3000
or curl localhost:3000