Automated setup (BETA)

Supported Systems

  • Arch

  • Ubuntu (18.4, 19.10, 20.04)

  • Manjaro (20.0.3)

  • Linux Mint (19.10)

  • MacOS Catalina

Before you start

  1. Make sure you have a valid Magento 2 COMPOSER_AUTH set. This is an environment variable set on your host machine. To test if it is set, use:

env | grep COMPOSER_AUTH

If the output of this command is empty, or, if the output (JSON object) does not contain "repo.magento.com" key, you need to set / update the environment variable.

2. If you have nodejs preinstalled, make sure you are using version 10.2

3. If you have aliases preinstalles / same aliases used - you won’t be asked if you want to add them

Automated Setup Repository

Get the automated setup code from its public GitHub repository.

Linux Start

  1. Run the script:

MacOS Start

  1. Install docker, run it and give special permissions manually

  2. Run the script:

FAQ

Database migration failed: manual action required / magento: command not found

To solve that problem you need you to run the migration again:

SSL certificates

If scandipwa.local website is not trusted by default, then please:

  1. Import the scandipwa-base/opt/cert/scandipwa-fullchain.pem

  2. Type thisisunsafe on the certificate error page

Please set COMPOSER_AUTH environment variable

Stop docker containers and restart the script.

502 bad gateway

Chrome and other browsers can cache page, just use hard reload or incognito mode. If doesn’t help restart some containers.

  • With aliases:

  • Without aliases:

Port {port} is used problem

If you don’t know what can use specific port, you can print it:

Set up from beginning (install demo again)

Delete .env file in root of autoscandipwa folder:

Elasticsearch dead

SSL container is dead

  • Check if scandipwa-base/opt/cert/ is not empty

  • Remove .env from autoscandipwa folder

  • Rerun the script and watch for SSL generation errors

Other useful information

Stop demo

  • With aliases

  • Without aliases

Delete some of demo docker images (others should be deleted manually)

Delete all the demo docker images (including ALL other docker images)

Aliases added by script

  • Use dc to start without frontend container

  • Use dcf to start with frontend container

  • Use inapp to quickly get inside of the app container

  • Use infront to quickly get inside of the frontend container

  • Use applogs to quickly see the last 100 lines of app container logs

  • Use frontlogs to quickly see the last 100 lines of frontend container logs

Something does not work?

Follow this simple algorithm:

  1. Refer to the FAQ page. It most probably already has the solution to your problem.

  2. If the issue still persists, join our community slack, and feel free to ask questions in #pwa_tech public channel.

  3. Alternatively create an issue on GitHub - however, the response time there will be a little-bit longer than in community Slack.

Last updated