cd ~/Homesteadvagrant upvagrant ssh- log in to vagrantcd code/hancocknpm run watchornpm run watch-poll- Watch and compile changes, must be done from vagrant server- use
http://localhost:3000/for dev
rm -rf docsnpm run prodnpm run docs
- Uncomment lines 21-26 in webpack.mix.js (postCss)
npm run prod- Get CSS from assets/css/main-support.css
- Comment lines 21-26 in webpack.mix.js (postCss)
- Install Vagrant and VirtualBox per Laravel Homestead guide
cd ~/Homesteadvagrant up(and if everything's missing reload provision)- Add site path (homestead.test) to /etc/hosts
192.168.10.10 hancock.test npm installor see Windows (below) if errorscomposer install(untested)
- Add site path to C:\Windows\System32\drivers\etc\hosts
npm install --no-bin-linksfrom Windows bash (ornpm update --no-bin-linksfor updates)sudo npm rebuild node-sass --no-bin-linksfrom Vagrant bashbrowser-sync start -p "hancock.test" -f "build_local, assets"from Windows bash (http://localhost:3000/)- Add to vagrant file:
config.vm.network :forwarded_port, guest: 3000, host: 3000, auto_correct: true(reload prov)