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..

Guys may I ask you, can we have a config file for staging environment?

U04HZ4BLVMM
U04HZ4BLVMM Posts: 69 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Guys may I ask you, can we have a config file for staging environment?

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 โš–๏ธ - Guardians (admin)

    Hey, yes, this should normally be possible.

    Normally you would use a different deploy-file for the staging environment so your environment variable is set to something for staging. Then you can add another config file which will be used at that environment.

    Have a look into vendor/spryker/config/src/Spryker/Shared/Config/Config.php

    Wasnt this part of the Basics Training Course as well btw? ๐Ÿ˜›

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Yeap, I used the default-docker.dev.php file

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    environment: docker.dev
    
  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so I think this is the proper file, I wanted to be sure

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 โš–๏ธ - Guardians (admin)
    edited February 2023

    So I guess your project is in the Spryker cloud so by default you should have 2 environments. One is prod and there should be a second one non-prod.

    if the non-prod is using the environment [docker.dev](http://docker.dev) then the correct config file would be indeed config_default-docker.dev.php