Giter Site home page Giter Site logo

vagrant-magento2dev's Introduction

Vagrant for Magento 2 developing

This vagrant box with environment optimized for Magento 2 developing. Including:

  • Ubuntu18.04,
  • PHP7.2,
  • MariaDB 10.3.15,
  • XDebug 2.6.0

HOW TO USE

Change configs in vagrant/config.yaml file:

  • hostname
  • private_ip

Type next commands in vagrant/ directory:

  • vagrant plugin install vagrant-hostmanager (if didn't installed)
  • vagrant plugin install vagrant-disksize (if didn't installed)
  • vagrant up

Vagrant machine configurations

You can configurate you machine in config.yaml file.

Allowed configs:

  • hostname

set here your project host name, so you will can use http://vagrant.sample instead private_ip to access website for using this need to install host manager plugin for vagrant - vagrant plugin install vagrant-hostmanager

  • private_ip

IP address of you project website, you will access to website by this IP address in browser

  • use_nfs

0/1 values, will use or not network file system, strongly reccomend to enable for better permormance

  • disk_size

Max disk size of your future machine. Default value 60GB.

  • memory_size

Memory allowed to your future machine. Default value 512MB.

Directories

Your project will locate in html directory. On vagrant machine projet locate in /var/www/html/ directory.

Syncing directories ../html -> /var/www/html

How to login into vargant machine:

First way - using vagrant command

vagrant ssh

Second way - login through ssh

ssh [email protected]

Credentials

SSH

username - vagrant

password - vagrant

MySQL

username - root

password - root

Login as root user

For login as root user next command:

sudo su

Login as www-data user

For login as www-data user next command:

sudo su -l www-data -s /bin/bash

XDebug enabling

To enable the XDebug, uncomment the ;zend_extension=/usr/lib/php/20170718/xdebug.so line in the /etc/php/7.2/mods-available/xdebug.ini

vagrant-magento2dev's People

Contributors

semulia avatar bamkustov avatar madmitrich 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.