ZSH can be installed by running apt install zsh. A one liner like apt install curl git git-core iputils-ping takes care of those applications. Luckily new software can easily be added by running apt update & apt upgrade then apt install. None of the common commands like curl, git or ping come preinstalled. PRETTY_NAME="Debian GNU/Linux 8 (jessie)" Running cat /etc/os-release reveals it’s a Linux machine running Debian. You can see the VM running in the background by opening up VirutalBox.Įach site then spins up a new docker on the VM which can be accessed with SSH. Local installs VirtualBox so that it can run a virtual machine which is used to host it’s local websites. Ln -s /usr/share/zoneinfo/America/New_York /etc/localtime What is the underlying virtual machine? In order to correct I made a backup of the current localtime file and created a symlink to my timezone. Local’s default is Etc/UTC however it should really be in sync with the host computer. Running dpkg-reconfigure -frontend noninteractive tzdata will reveal the current zone info. Running date "+%Y-%m-%d %H:%M:%S" on both my command line and the VM’s revealed the difference. I figured this was due to the fact that the VM was running a different time then my local computer. Constellix started to response with the error: Bad timestamp! The timestamp is either expired or in the future. My WordPress website makes API requests to other services like Constellix. With my WordPress site I changed localhost to 192.168.95.1 and which resolved that issue. On MacOs run ifconfig and look for the vboxnet0 adaptor. That request is going fail with Local due to the fact that localhost and 127.0.0.1 reference the virtual machine not the host machine.Ī workaround I came up with involves finding the host machine’s virtual IP. Let’s say your WordPress site needs to make a request to localhost:8000 for another service, like Fathom, which is hosted on your local machine. Web request to other locally hosted application will fail. Here is a recap of my first day digging into Local. VMs run slower and add extra complexities as compared to hosting websites with a local Nginx server (like Valet does). It’s one of the reasons I was avoiding using Local. Local by Flywheel works by using a virtual machine. Spending my day attempting to resolve an obscure bug with Valet is not a good use of my time. However after wasting a day attempting to fix a bug with Valet I decided to give Local by Flywheel a try. I’m a big fan of Laravel’s Valet for local WordPress development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |