GithubHelp home page GithubHelp logo

guoyu07 / shopware-vagrant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shopware5/shopware-vagrant

0.0 0.0 0.0 126 KB

A Vagrant setup ready for shopware development

License: MIT License

PHP 99.62% Shell 0.38%

shopware-vagrant's Introduction

Vagrant Shopware Box

Installation

Virtualbox and Vagrant (min. Version 1.8) have to be installed on your local machine:

Vagrant installation for Debian / Ubuntu

$ wget https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb
$ sudo dpkg -i vagrant_1.8.5_x86_64.deb

Usage

Clone the repository to your local machine.

$ git clone https://github.com/shopwareLabs/shopware-vagrant
$ cd shopware-vagrant

Boot up your vagrant virtual machine:

$ vagrant up

The first boot may take a while, so feel free to get a cup of coffee.

Your machine will be available at http://192.168.33.10/ All required tools like the LAMP stack are already installed.

To SSH into the created VM:

$ vagrant ssh

If you use Putty the ssh configuration can be obtained via:

$ vagrant ssh-config

To reprovision your machine:

$ vagrant provision

Troubleshooting

  • Error message "The 'ansible_local' provisioner could not be found.":

Make sure vagrant is at least at version 1.8:

$ vagrant -v

Change PHP Version

The following PHP Versions are installed by default:

  • PHP 5.6
  • PHP 7.0
  • PHP 7.1

Call one of the following commands to change the PHP Version:

$ changephp_5.6
$ changephp_7.0
$ changephp_7.1

This will change the PHP Version used by the Apache webserver as well as the Version of the php command.

You can also call the PHP versions directly using their full path

$ /usr/bin/php5.6 -v
$ /usr/bin/php7.0 -v
$ /usr/bin/php7.1 -v

Installing Shopware

SSH first into your VM:

$ vagrant ssh

Call the install_shopware script:

$ install_shopware

This will download the latest git version of shopware and install it into /home/vagrant/www/shopware.

Download test images:

$ cd home/vagrant/www/shopware
$ wget -O test_images.zip http://releases.s3.shopware.com/test_images.zip
$ unzip test_images.zip

Configure your online store in a web browser with the credentials demo/demo:

You can then access your storefront at:

Notes for Arch Linux users

$ sudo pacman -S virtualbox ansible net-tools nfs-utils
$ sudo modprobe -a vboxdrv vboxnetadp vboxnetflt
$ sudo systemctl start nfs-server

License

The MIT License (MIT). Please see License File for more information.

shopware-vagrant's People

Contributors

bcremer avatar dnoegel avatar fboes avatar gugiman avatar jhit avatar larsbo avatar numediaweb avatar sebastien-fauvel 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.