Giter VIP home page Giter VIP logo

shopware-docker's Introduction

Build Status

Docker Shopware Box

Installation

Docker (min. Version 1.12) have to be installed on your local machine:

Usage

Clone the repository to your local machine.

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

Boot up your docker containers with psh.phar:

$ ./psh.phar docker:start

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

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

  • MySQL user: app, password: app

To SSH into the created Container:

$ ./psh.phar docker:ssh

Installing Shopware

SSH first into your VM:

$ ./psh.phar docker:ssh

Call the init script:

$ ./psh.phar init

This will download the latest release version of shopware and install it into /var/www/shopware/shopware

If you want an older shopware version just add --sw-version to the init script:

$ ./psh.phar init --sw-version=5.7.17

If an error occurs during unzip and you are asked whether data should be overwritten, then the release is defective. Just choose another release.

Add config to disable cache and force compile of template on every refresh:

// config.php
array(
    ...
    'template' => [
        'forceCompile' => true,
    ]
    ...
)

For plugin development

This does not work! I put fucking 6 hours into it trying to fix the dev environment.... but functions are called which don't exist since > 5.2. No alternative functions exist. From one error message to the next!

Just use init... and that's it. (See above)

Dome

For plugin development there is a script init-vcs to initialize and install shopware through github.

$ ./psh.phar init-vcs --sw-branch=5.7

The plugin(s) you want to start development should be located in ./plugins (Only new plugin system is supported). They can be installed and linked into the Shopware checkout by executing

$ ./psh.phar init-plugins

This can be used together with our plugin-dev-tools as the local environment.

Access

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

You can then access your storefront at:

Troubleshooting

If the elasticsearch or redis container didn't start make sure that the directory dev-ops/docker/_volumes/app-esdata|app-redisdata has chmod 777.

shopware-docker's People

Contributors

arosenhagen avatar fl0aten avatar janpietrzyk avatar opdevs-josh avatar robtranquillo avatar svenfinke avatar teiling88 avatar terwey avatar wridgeu avatar

Stargazers

 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.