Development environment for WPCS2 using Vagrant + Ansible
First, init and up your box.
vagrant up
Then, ssh to the box.
vagrant ssh
Before the setting up, you need to install Ansible.
/vagrant/init.sh
Finally, run Ansible.
sudo ansible-playbook -i /vagrant/develop /vagrant/playbook.yml
You have to logout / login to the box again for applying changes on ~/.bashrc
.
- Clone WPCS2 to
WPCS2_devenv/WPCS2
(Do it on host)
- On VM, you can access host's folder
WPCS2_devenv/
asvagrant/
- ssh to VM
vagrant ssh
- cd to WPCS2 directory
cd vagrant/WPCS2
- Install gems
bundler install
- Install node packages
npm install
- Serve the app
rails server
- Access to the app on your browser
- http://localhost:3000/
- You can change the port number by editing Vagrantfile
Happy developing!