Setting up Yeoman development environment under Vagrant. Basic steps:
- Install Vagrant, VirtualBox
- Clone/copy this repository to new host-side project directory
- Run vagrant up - have a cup of cofee, while VM is downloading and is being setup
- Run vagrant ssh to connect to client VM
- Inside projects directory, create a sub-directory for actual yeoman project. For example yeoman-test
- Run yo ember - agree to all default choices
- As per PROJECT_ADJUSTMENT.md:
- Change localhost to 0.0.0.0 in Gruntfile.js (vi is available or use whatever you want on host-side)
- Comment out test call for default grunt action
- Run grunt server
- Load http://localhost:9000/ on your real machine - ports are proxied through
- Edit yeoman-test/app/scripts/controllers/main.js
- Add Vagrant to the list of technologies
- See it update on the screen - demonstrating round-trip and isolation
- Run grunt to compile production version of the website
- exit from the VM
- Run vagrant suspend to stop VM running
Source https://github.com/arafalov/vagrant-yeoman https://github.com/yeoman/generator-ember