Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.04 KB

readme.md

File metadata and controls

55 lines (37 loc) · 1.04 KB

stack

To run graphql + PWA locally, with a LIVE magento store:

1. Install git submodules

git submodule update --init

2. Copy local.env.example -> local.env

Here you can update the host/user/password to match a magento store you have an admin password for.

cp local.env.example local.env

3. Run docker-compose, with the special setup file 'without-docker.yml'

docker-compose -f without-magento.yml up

4. Add pwa.m2 to your hosts file

sudo vim /etc/hosts

# add these lines
0.0.0.0 pwa.m2
0.0.0.0 shop.pwa.m2

That's it!, it will take some time the first time around as all of the images will be built/downloaded.

You can now access:


Working with git submodules

  • I cloned the repo, but the submodule folders are empty

    git submodule update --init
  • How do I pull the latest commits from all submodules?

    git submodule update --recursive --remote