Skip to content

A shell script to setup environment and packages to support running Laravel and Magento

License

Notifications You must be signed in to change notification settings

ranium/laravel-magento-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel|Magento server

A simple script which helps you quickly setup Laravel and Magento environment on your local machine. This script is inspired by Homestead and comes in handy if you want to run a dedicated server instead of a virtual machine.

Developed By 💻

N|Ranium

Features

  • Relatively fast than homestead environment
  • No need to add virtual host, it's already done
  • Supports PHP   5.6   7.0   7.1   7.2   7.3   7.4
  • Clone project, run laravel/magento commands and That's all!

Installation 🚀

First, clone the project from github, then

$ cd laravel-magento-server/scripts && sudo sh provision.sh <sample_project_name_to_test>

Let the script install all the packages for you which are required to start working with Laravel/Magento.

Project setup

Drop your Laravel/Magento project in /var/www/ Run commands with any php version you want, like if 7.1
php7.1 composer install . .

$ phpx.x composer install
$ phpx.x bin/magento ....

But wait, what about the domain name we have to enter. Guess what, your project name is your domain name !!

Lets say if you've setup laravel project with php7.2 version, then your domain name will be -

<project-name>.frontendphp72.co.uk

and if you've setup magento project with php7.1, then domain name will be -

<project-name>.backendphp71.com

You'll get the idea by referring following table:-

PHP Version Magento Domain Laravel Domain
5.6 {project-name}.backendphp56.com {project-name}.frontendphp56.co.uk
7.0 {project-name}.backendphp70.com {project-name}.frontendphp70.co.uk
7.1 {project-name}.backendphp71.com {project-name}.frontendphp71.co.uk
7.2 {project-name}.backendphp72.com {project-name}.frontendphp72.co.uk
7.3 {project-name}.backendphp73.com {project-name}.frontendphp73.co.uk
7.4 {project-name}.backendphp74.com {project-name}.frontendphp74.co.uk

Libraries & Packages 📚

Following is the list of Libraries & Packages which gets install along with environment setup.

Contributing

If you have any issue or idea which you want to share, please open an issue. If you'd like to contribute, please fork the repository. Pull requests are warmly welcome.

Credits 🌠

This script is heavily inspired by Laravel-Settler, most of the script content is copied from that only.

License

MIT

About

A shell script to setup environment and packages to support running Laravel and Magento

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages