A simple way to get magento2 up and running. It consists of a ubuntu/trusty64 box provised via Ansible. The provider is Virtual Box. It will install
- Apache 2.4
- PHP 5.6
- MySql 5.6
- GIT
- Swapfile
- Composer
- Clone this repository:
git clone --recursive https://github.com/giappv/vagrant_magento2.git
- Navigate into the repository via
cd
- Start up virtual machine:
vagrant up
- Point a host name to 192.168.36.99 in /etc/hosts
echo '192.168.36.99 dev.m2' >> /etc/hosts
- Add your Magento Connect authentication credentials to ansible vars located at
ansible/vars/all.yml
repo.magento.com:
username: d7990a5019126a9e024d85f826f217f5
password: 935e734272ceee33becb5b01b6230d8b
###Install Magento
6. Once the machine completes provisioning, SSH to the server (vagrant ssh
).
7. Go to /vagrant/htdocs/magento2 run composer install
8. Visit dev.m2
on your browser to setup magento
9. Go to /vagrant/htdocs/magento2 run php bin/magento setup:static-content:deploy
to update static folder
- Username: mage
- Password: 123456
- DB Name: mage
- /vagrant/htdocs/magento2