Skip to content

btantlinger/ezmage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ezMage

A basic preprovisioned dev box for Magento 2.4.4 development

  • Ubuntu 20.04
  • nginx
  • redis
  • elasticsearch 7
  • MySQL 8
  • PHP 8.1
  • composer
  • Xdebug
  • MailHog
  • node & npm
  • Gulp, Grunt

Start up ezMage

Assuming that VirtualBox (https://www.virtualbox.org/) and Vagrant (https://www.vagrantup.com/) are already installed on your machine...

  1. Clone or download + unzip repository
  2. In your terminal go to the directory and type vagrant up
  3. Enjoy

Using ezMage

The default configuration of the box uses the ip 192.168.33.23 and domain magento-dev.local. The webroot and domain name can be changed in the provision.sh shell file.

You should make an entry in your /etc/hosts file for the domain. E.g

192.168.33.23 magento-dev.local

MailHog

Any emails your application sends are caught by MailHog, which can be accessed from: http://192.168.33.23:8025

MySQL

Connection details for the MySQL database are:

database: magento user: admin password: 123

Magento setup

Log in to the vagrant

vagrant ssh

Change to the web root and set up magento:

 php bin/magento setup:install \
   --admin-firstname=John \
   --admin-lastname=Smith \
   [email protected] \
   --admin-user=admin \
   --admin-password=123123q \
   --base-url=http://magento-dev.local/ \
   --db-host=localhost \
   --db-name=magento \
   --db-user=root \
   --db-password=123 \
   --currency=USD \
   --timezone=America/New_York \
   --language=en_US \
   --use-rewrites=1

Compile Magento

php magento setup:di:compile

Deploy Magento

php magento setup:static:deploy

IP Address

You can change the ip of the box by editing the following line in the Vagrantfile and replacing 192.168.33.23 with the ip you'd like to use:

config.vm.network "private_network", ip: "192.168.33.23"

About

Vagrant box for magento2 development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages