Calling Developers!
We are reenergizing our code contribution process! Learn More

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?

Options
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,034 ⚖️ - Guardians (admin)
    Options

    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
    Options

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

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet
    Options
    environment: docker.dev
    
  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet
    Options

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

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    edited February 2023
    Options

    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