Skip to content

Instantly share code, notes, and snippets.

@truetamtam
Last active October 15, 2015 21:38
Show Gist options
  • Save truetamtam/928972dd2605b31ed368 to your computer and use it in GitHub Desktop.
Save truetamtam/928972dd2605b31ed368 to your computer and use it in GitHub Desktop.
Homestead problems and solutions(npm err windows7x64 shared folders)
----------------------------------------------------
Problem 1:
npm install
... npm ERR...
Soft:
Laravel Homestead version 2.1.6
Vagrant 1.7.4
VirtualBox 4.3.30
Solution:
1. ssh into homestead
2. sudo npm -g install npm@latest
... then: npm install --no-bin-links
----------------------------------------------------
Проблема 2:
Выключена локаль ru_RU.UTF-8
Решение:
1. ssh в виртуалку.
2. sudo locale-gen ru_RU.UTF-8
3. sudo update-locale
----------------------------------------------------
Проблема 3:
timezone не совпадала с хостом.
Из-за этого были проблемы с синхронизацией файловой системы.
Решение:
1. ssh в виртуалку.
2. sudo dpkg-reconfigure tzdata
3. sudo /etc/init.d/cron stop
4. sudo /etc/init.d/cron start
----------------------------------------------------
Problem 4:
html caching with opcache for too long.
Generated view stays in cache, and have to f5x3 times.
Solution:
1. ssh into vm.
2. edit /etc/php5/fpm/php.ini and set opcache.revalidate_freq=0
----------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment