What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello Team, I have setup b2c demo shop using docker in my machine. I did some changes in config and

U03KHDBS1CN
U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

Hello Team, I have setup b2c demo shop using docker in my machine. I did some changes in config and Zed code and need to run docker/sdk up to make the changes reflect in my local machine. Is there any console commands or plugins to compile the code?

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    What deploy file have you used for initial bootstrap? Deploy.dev.yml or something else?

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet
  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Are your changes php or js then?

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    php

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    config changes as well

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    But then you don't need to do anything usually as changes are being synced into running containers on the fly.

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    if I do config changes it is not immediately reflecting

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    I need to do sdk up

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited June 2022

    There is a problem with your local setup then.
    Is it macos?

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    its windows

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    WSL2?

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    actually I am using spryker react API package to connect my local spryker (glue API)

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes wsl2

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    if I do config changes to allow CORS in config file it is not reflecting in spryker react, its working/reflecting after sdk up

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Can't imagine the situation when code changes are not immediately reflected in running containers if deploy.dev.yml was used initially.

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    will re-install and give it a try then

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 βš–οΈ - Guardians (admin)

    for win wsl2 setup i noticed several times now that it just stopped synching and you needed to to docker/sdk up again^^i dont know why. but maybe the same here

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Linux for the win!

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 πŸͺ - Explorer

    Try to patch https://github.com/spryker/docker-sdk/blob/master/bin/platform.sh#L5 to use grep -c -v -i Microsoft.

    If you run WSL2 you want to use the native linux docker filesystem driver, that's enabled by this line.
    But for some reason the newer (~1 year) WSL2 images, at least the Ubuntu ones, do return an identifier with microsoft inside, which does not match due to the missing case insensitive matcher.

    I thought this bug was already known and fixed, but does not seem like it is.

  • U03KHDBS1CN
    U03KHDBS1CN Posts: 36 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks all. It works fine after re-install.. Installed latest docker desktop Docker Desktop 4.9.0 and setup sprykr using deploy.dev.yml .. sync works fine now