Laravel4-Vagrant icon indicating copy to clipboard operation
Laravel4-Vagrant copied to clipboard

Request: HHVM

Open LimeBlast opened this issue 11 years ago • 4 comments

Do you think you can bake some support for HHVM into the box?

I'm not sure that it is a suitable alternative to PHP for anything accessed via the web interface/apache - but I've heard that it is really fast for running CLI stuff.

It could be good to have as an alternative to the php command via the CLI, allowing for commands to be run via hhvm artisan migrate (or whatever)

Just a thought :)

LimeBlast avatar Jan 30 '14 20:01 LimeBlast

Yea I think this is a great idea, I'll try to set some time aside to get this added and tested with the box :-)

bryannielsen avatar Feb 06 '14 16:02 bryannielsen

Cool, thank you. I think it also works well with things like composer update, etc..

LimeBlast avatar Feb 06 '14 17:02 LimeBlast

Is this in the works, or should I take a stab at it?

I think it should be as easy as installing hhvm with apt

andheiberg avatar Feb 22 '14 11:02 andheiberg

I ended up ripping out most of this repos stuff, so I won't bother to setup a new project and commit this, but hhvm can easily be setup on ubuntu like this.

class hhvm {

  if(!defined(Package['apt'])) {
    package { 'apt':
      ensure => present,
    }
  }

  include apt

  apt::key { 'hhvm':
    key_source => 'http://dl.hhvm.com/conf/hhvm.gpg.key',
  }

  apt::source { 'hhvm':
    location    => 'http://dl.hhvm.com/ubuntu',
    release     => 'precise',
    repos       => 'main',
    include_src => false,
  }

  package { 'hhvm':
    ensure => 'present',
    require  => Exec['apt_update'],
  }

}

andheiberg avatar Feb 23 '14 10:02 andheiberg