mage2_vagrant icon indicating copy to clipboard operation
mage2_vagrant copied to clipboard

Adds explicit setup instructions to address #52

Open kirkmadera opened this issue 9 years ago • 5 comments

This addresses specific issues I ran into while setting this VM up in order to prevent other users from getting stuck on them.

kirkmadera avatar Dec 07 '15 17:12 kirkmadera

After working with this more, I ran into an issue with VirtualBox not being able to create symlinks. I talked to Mat (@aepod) on our team and realized that I think everyone using this is using Macs. It might make more sense to not merge this PR and instead include a big notice at the top that this will not work on Windows until someone can confirm it working. My next step here is to build my own VM from our base vm. Mat already did this and it worked. I appreciate the work being done here still.

kirkmadera avatar Dec 07 '15 22:12 kirkmadera

@kirkmadera It might be worth trying to start vagrant with administration rights (start your terminal with it). It helped me create symlinks. Probably doesn't work on Windows 10 tho.

stefandoorn avatar Dec 08 '15 09:12 stefandoorn

@kirkmadera Thanks for your PR.

Could you please check if it works with administrator privileges as @stefandoorn mentioned? If yes, could you please update your pull request and add an hint for Windows users?

therouv avatar Dec 08 '15 10:12 therouv

I figured out that I had to run a couple of additional commands.

cd /vagrant/data/magento2;
git checkout master; # develop is the default branch and I wanted to work with more stable code
composer update;
cp ~/.composer/auth.json var/composer_home;
dos2unix bin/magento;
bin/magento sampledata:deploy;
bin/magento setup:upgrade;
bin/magento setup:static-content:deploy;

I think symlink creation would probably still be an issue, but deploying the assets makes it work.

kirkmadera avatar Dec 09 '15 03:12 kirkmadera

I added enough notes for this to be sufficient for Windows users. I think this is safe to pull in.

kirkmadera avatar Dec 09 '15 03:12 kirkmadera