Giter Site home page Giter Site logo

gardening-hhvm's Introduction

Gardening

pre-packaged Vagrant box that provides you a wonderful development environment
without requiring you to install HHVM, a web server(Nginx),
and any other server software on your local machine.

php7 box:

"require-dev": {
  "ytake/gardening-hhvm": "~0.0"
}

(supported for virtualbox only)

Included Software

  • Ubuntu16.04
  • Git
  • HHVM
  • Nginx
  • MySQL
  • Sqlite3
  • PostgreSQL
  • Composer
  • Node.js (Gulp, webpack)
  • Redis
  • Memcached

MySQL and PostgreSQL

  • user: gardening
  • password: 00:secreT,@

Install Gardening Box

case 1, your "home" directory

$ cd ~
$ git clone https://github.com/ytake/gardening-hhvm.git gardening-hhvm

setup.sh(Windows .bat) command from the gardening-hhvm directory to create the vagrant.yaml configuration file.(~/.gardening-hhvm hidden directory)

$ bash setup.sh

case2, Per Project Installation

To install gardening-hhvm directly into your project, require it using Composer:

$ composer require ytake/gardening-hhvm --dev

use the make command to generate the Vagrantfile and vagrant.yaml(or vagrant.json) file in your project root.

$ ./vendor/bin/gardening-hhvm gardening-hhvm:setup

gardening.json:

$ ./vendor/bin/gardening-hhvm gardening-hhvm:setup --filetype=json

Configuration

Configuring Shared Folders

folders:
    - map: /path/to/yourProject
      to: /home/vagrant/yourProjectName

many shared folders:

folders:
    - map: /path/to/yourProject
      to: /home/vagrant/yourProjectName
    - map: /path/to/yourSecondfProject
      to: /home/vagrant/yourSecondProjectName

Configuring Sites

sites:
    - map: gardening.app
      to: /home/vagrant/yourProject/public

many sites:

sites:
    - map: gardening.app
      to: /home/vagrant/yourProject/public
    - map: gardening.second.app
      to: /home/vagrant/yourSecondProject/public

Ports

By default, the following ports are forwarded to your gardening environment:

  • SSH: 2222 → Forwards To 22
  • HTTP: 8000 → Forwards To 80
  • HTTPS: 44300 → Forwards To 443
  • MySQL: 33060 → Forwards To 3306
  • Postgres: 54320 → Forwards To 5432

Forwarding Additional Ports:

ports:
    - send: 7777
      to: 777

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.