#Segmentation - RD#
##Requirements to run localy with Ansible provision##
- Ansible
- Vagrant
- VirtualBox
##Run now!##
- clone the project
git clone [email protected]:EderRoger/segmentation_rd.git
cd segmentation_rd
vagrant up
- copy id_rsa.pub to vagrant authorized_keys
ssh-copy-id [email protected]
(password = vagrant) - run ansible provision
ansible-playbook -i production -u vagrant server.yml -vvvv
- copy your public key
cat ~/.ssh/id_rsa.pub
- now you must add your public key to root user
vagrant ssh
thensudo su root
now edit authorized keyssudo vim ~/.ssh/authorized_keys
and add your public key - run ansible provision with root
ansible-playbook -i production -u root root.yml -vvvv
##Now you can check if your server is provisioned##
vagrant ssh
andcd /vagrant/segmentation
execute bundle commandbundle install
- run
sudo rake db:migrate
and start the serversh start.sh
- open your browser and check http://localhost:3000
##Requirements to run with your environment##
- ruby
- postgres
##Run now##
- clone the project
git clone [email protected]:EderRoger/segmentation_rd.git
cd segmentation_rd
- execute bundle command
bundle install
and start the serversh start.sh
(if appears bundle error remove Gemfile.lock and re-runbundle install
) - open your browser and check http://localhost:3000