Giter Site home page Giter Site logo

vagrant-laravel's Introduction

Vagrant-Laravel

Ubuntu vagrant for dev environment for Laravel with some provision scripts:

Test environment for this configuration

MacOS X 10.9.5 (Mavericks)
Vagrant version 1.7.2
Vagrant image "primalskill/ubuntu-trusty64"

git.sh

Install Git

config.vm.provision "shell", path: "provision/components/git.sh"

nginx.sh

Install Nginx server

###Parameters

  1. App Laravel name

config.vm.provision "shell", path: "provision/components/nginx.sh", args: ["my_laravel_app"]

curl.sh

Install cURL library

config.vm.provision "shell", path: "provision/components/curl.sh"

php.sh

Install PHP and extensions

config.vm.provision "shell", path: "provision/components/php.sh"

PHP Installation

php5-common, php5-dev, php5-cli, php5-fpm

PHP Extensions

php5-curl, php5-gd, php5-mcrypt, php5-mysql

mysql.sh

Install MySql

###Parameters

  1. root password

config.vm.provision "shell", path: "provision/components/mysql.sh", args: ["root"]

phpmyadmin.sh

Install PhpMyAdmin

###Parameters

  1. root password

config.vm.provision "shell", path: "provision/components/phpmyadmin.sh", args: ["root"]

zip.sh

Install ZIP library

config.vm.provision "shell", path: "provision/components/zip.sh"

composer.sh

Install composer

config.vm.provision "shell", path: "provision/components/composer.sh"

laravel.sh

Install Laravel

###Parameters

  1. App Laravel name
  2. Laravel version (version >= "4.x.x" or "current")

config.vm.provision "shell", path: "provision/components/laravel.sh", args: ["my_laravel_app", "4.2.11]

postinstall.sh

Script for general purpose at the end of the queue config.vm.provision "shell", path: "provision/components/postinstall.sh"

Notes

Check the "Vagrantfile" file if you need to customize the settings

***You need to add a valid github access token to the "Vagrantfile" (for composer)

URL/Port

http://localhost:8080

(if the installation was successful then you'll see the laravel's homepage)

PhpMyAdmin

http://localhost:8080/phpmyadmin

Sync Folders

/var/www

Nginx root

/var/www/src/laravel_app_name/public

Database credentials

user: root pass: root

Directory structure

├── provision
│   ├── components
│   │   ├── composer.sh
│   │   ├── curl.sh
│   │   ├── git.sh
│   │   ├── init.sh
│   │   ├── laravel.sh
│   │   ├── mysql.sh
│   │   ├── nginx.sh
│   │   ├── php.sh
│   │   ├── phpmyadmin.sh
│   │   ├── postinstall.sh
│   │   └── zip.sh
│   └── config
│       └── nginx_vhost
├── src
├── README.md
└── Vagrantfile



####Based on: https://github.com/amenophis/vagrant-ubuntu

vagrant-laravel's People

Contributors

gitllermopalafox avatar

Watchers

James Cloos avatar

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.