Migrate to cloud: Define environment variables

Edit on GitHub

Having defined the deployment strategy, you must define the environment variables.

Spryker uses config/Shared/config_*.php files to configure applications for specific environments and stores. Inside those config files, we use env() function to get specific values, for example:

$config[ServiceApiConstants::BASE_URL] = env('SERVICE_API_BASE_URL');
$config[ServiceApiConstants::API_KEY] = env('SERVICE_API_KEY');
$config[ServiceApiConstants::API_SECRET] = env('SERVICE_API_SECRET');

Follow the same configuration approach to define the variables in your application.

Next step

Restore Elasticsearch and Redis