Mitchell McKenna - tagged with vagrant http://mitchmckenna.com/feed en-us http://blogs.law.harvard.edu/tech/rss LifePress mitchellmckenna@gmail.com Failed to restart php7.0-fpm.service: Unit php7.0-fpm.service not found. http://mitchmckenna.com/post/17307/failed-to-restart-php70-fpmservice-unit-php70-fpmservice-not-found

You might have this happen to you if you switch back to an old project using Homestead. Basically you have a new version of the laravel/homestead vagrant box (1.0.1) which includes php 7.1 but the package in composer ^3.0 is expecting php 7.0.

Solution

Just add the line version: 0.6.0 to your homestead.yaml to indicate you want that version for the vagrant box which is the last one that includes php 7.0.

]]>
Tue, 24 Jan 2017 17:36:46 -0500 http://mitchmckenna.com/post/17307/failed-to-restart-php70-fpmservice-unit-php70-fpmservice-not-found/failed-to-restart-php70-fpmservice-unit-php70-fpmservice-not-found
Vagrant Manager - Manage Multiple Vagrants From The Mac Menu Bar http://mitchmckenna.com/post/14900/vagrant-manager-manage-multiple-vagrants-from-the-mac-menu-bar

If you've played with vagrant it can be difficult to know which vagrant might be taking up a port right now, or where all your memory went (various vagrants still running). This lets you boot up and shutdown vagrants from the Mac Menu Bar, see the status on all your vagrants, etc.

]]>
Thu, 06 Nov 2014 16:29:00 -0500 http://mitchmckenna.com/post/14900/vagrant-manager-manage-multiple-vagrants-from-the-mac-menu-bar/vagrant-manager-manage-multiple-vagrants-from-the-mac-menu-bar
NPM Link with Vagrant - Symlinks Not Working? http://mitchmckenna.com/post/13362/npm-link-with-vagrant-symlinks-not-working

NPM Link

It can be handy to use npm link to make npm use a local copy of a node repo if you're working on that other repo at the same time (eg. I'm working on a repo that relies on a npm module I also contribute to). npm link creates a symlink in your npm global modules folder to your local repo, so that npm install/update uses your local copy and doesn't overwrite it.

Vagrant

You used to have to add settings to your config to get symlinks to work in Vagrant (see this issue) but since Vagrant 1.1, Vagrant supports symlinks by default (yay!) (see the commit).

NPM Link Not Working With Vagrant?

If the symlink points to somewhere outside your shared_folder, the symlink won't work though. You have to shared_folder where the symlink points to as well. So just like in the example:

cd ~/projects/node-redis    # go into the package directory
npm link                    # creates global link
cd ~/projects/your-project-repo   # go into some other package directory.
npm link redis              # link-install the package


You have to add to your Vagrant config:

config.vm.synced_folder "/usr/local/lib/node_modules/node-redis", "/usr/local/lib/node_modules/node-redis", :owner => "www-data", :group => "www-data"
]]>
Thu, 05 Sep 2013 14:04:09 -0400 http://mitchmckenna.com/post/13362/npm-link-with-vagrant-symlinks-not-working/npm-link-with-vagrant-symlinks-not-working