# multi-environment

Published articles for multi-environment.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Fluent Multi-Environment Config for Craft CMS 4

DevFeed: [Fluent Multi-Environment Config for Craft CMS 4](<https://devfeed.tech/articles/fluent-multi-environment-config-for-craft-cms-4-31263.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/fluent-multi-environment-config-for-craft-cms-4>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2022-07-26T04:00:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Content Management System](<https://devfeed.tech/topics/cms.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [allows](<https://devfeed.tech/tags/allows.md>), [autocomplete](<https://devfeed.tech/tags/autocomplete.md>), [better](<https://devfeed.tech/tags/better.md>), [cms](<https://devfeed.tech/tags/cms.md>), [config](<https://devfeed.tech/tags/config.md>), [craft](<https://devfeed.tech/tags/craft.md>), [create](<https://devfeed.tech/tags/create.md>), [editor](<https://devfeed.tech/tags/editor.md>), [environment](<https://devfeed.tech/tags/environment.md>), [errors](<https://devfeed.tech/tags/errors.md>), [fewer](<https://devfeed.tech/tags/fewer.md>), [files](<https://devfeed.tech/tags/files.md>), [fluent](<https://devfeed.tech/tags/fluent.md>), [insights](<https://devfeed.tech/tags/insights.md>), [less](<https://devfeed.tech/tags/less.md>), [model](<https://devfeed.tech/tags/model.md>), [multi-environment](<https://devfeed.tech/tags/multi-environment.md>), [settings](<https://devfeed.tech/tags/settings.md>), [using](<https://devfeed.tech/tags/using.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

This tutorial explains how Craft CMS 4.2's optional fluent configuration interface improves multi-environment config files. It highlights autocomplete, inline documentation, and type-checking as ways to reduce lookup work and configuration errors.

### Source excerpt

Using the new fluent model config settings in Craft CMS 4.2 allows you to create better config files, with less work and fewer errors

## Flat Multi-Environment Config for Craft CMS 3

DevFeed: [Flat Multi-Environment Config for Craft CMS 3](<https://devfeed.tech/articles/flat-multi-environment-config-for-craft-cms-3-31286.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/multi-environment-configuration-for-craft-cms-3>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2020-02-29T15:29:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Content Management System](<https://devfeed.tech/topics/cms.md>), [.env](<https://devfeed.tech/topics/dotenv.md>), [Environment Variables](<https://devfeed.tech/topics/environment-variables.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [aliases](<https://devfeed.tech/tags/aliases.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [approach](<https://devfeed.tech/tags/approach.md>), [article](<https://devfeed.tech/tags/article.md>), [cms](<https://devfeed.tech/tags/cms.md>), [config](<https://devfeed.tech/tags/config.md>), [configs](<https://devfeed.tech/tags/configs.md>), [craft](<https://devfeed.tech/tags/craft.md>), [database](<https://devfeed.tech/tags/database.md>), [docker](<https://devfeed.tech/tags/docker.md>), [environment](<https://devfeed.tech/tags/environment.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [file](<https://devfeed.tech/tags/file.md>), [files](<https://devfeed.tech/tags/files.md>), [flat](<https://devfeed.tech/tags/flat.md>), [git](<https://devfeed.tech/tags/git.md>), [heroku](<https://devfeed.tech/tags/heroku.md>), [insights](<https://devfeed.tech/tags/insights.md>), [multi-environment](<https://devfeed.tech/tags/multi-environment.md>), [need](<https://devfeed.tech/tags/need.md>), [presents](<https://devfeed.tech/tags/presents.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [sorts](<https://devfeed.tech/tags/sorts.md>), [variables](<https://devfeed.tech/tags/variables.md>)

### AI overview

A tutorial on configuring Craft CMS 3 across development, staging, and production environments using aliases, environment variables, .env files, and configuration files. It presents a flat configuration approach and discusses keeping environment-specific credentials and secrets separate from source code and databases.

### Source excerpt

Multi-environment configs for Craft CMS are a mix of aliases, environment variables, and config files. This article sorts it all out, and presents a flat config file approach

## Preventing Google from Indexing Staging Sites

DevFeed: [Preventing Google from Indexing Staging Sites](<https://devfeed.tech/articles/preventing-google-from-indexing-staging-sites-31289.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/prevent-google-from-indexing-staging-sites>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2017-02-02T09:00:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>), [Crawler](<https://devfeed.tech/topics/crawler.md>), [Content Management System](<https://devfeed.tech/topics/cms.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [config](<https://devfeed.tech/tags/config.md>), [diluting](<https://devfeed.tech/tags/diluting.md>), [environments](<https://devfeed.tech/tags/environments.md>), [google](<https://devfeed.tech/tags/google.md>), [indexing](<https://devfeed.tech/tags/indexing.md>), [insights](<https://devfeed.tech/tags/insights.md>), [multi-environment](<https://devfeed.tech/tags/multi-environment.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [robots-txt](<https://devfeed.tech/tags/robots-txt.md>), [seo](<https://devfeed.tech/tags/seo.md>), [seomatic](<https://devfeed.tech/tags/seomatic.md>), [sites](<https://devfeed.tech/tags/sites.md>), [staging](<https://devfeed.tech/tags/staging.md>), [value](<https://devfeed.tech/tags/value.md>)

### AI overview

This tutorial explains how to prevent Google and other search engines from indexing staging sites. It presents robots.txt and SEOmatic as an alternative to password protection, allowing external performance and SEO testing while avoiding duplicate-content concerns.

### Source excerpt

SEOmatic and a multi-environment config can prevent Google from indexing your staging sites, and diluting your SEO value

## Multi-Environment Config for Craft CMS

DevFeed: [Multi-Environment Config for Craft CMS](<https://devfeed.tech/articles/multi-environment-config-for-craft-cms-31285.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/multi-environment-config-for-craft-cms>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2016-12-02T20:32:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Content Management System](<https://devfeed.tech/topics/cms.md>), [Development](<https://devfeed.tech/topics/development.md>), [Website](<https://devfeed.tech/topics/website.md>)

Tags: [cms](<https://devfeed.tech/tags/cms.md>), [configs](<https://devfeed.tech/tags/configs.md>), [craft](<https://devfeed.tech/tags/craft.md>), [effectively](<https://devfeed.tech/tags/effectively.md>), [efficacious](<https://devfeed.tech/tags/efficacious.md>), [environment](<https://devfeed.tech/tags/environment.md>), [environments](<https://devfeed.tech/tags/environments.md>), [help](<https://devfeed.tech/tags/help.md>), [here-s](<https://devfeed.tech/tags/here-s.md>), [insights](<https://devfeed.tech/tags/insights.md>), [multi-environment](<https://devfeed.tech/tags/multi-environment.md>), [production](<https://devfeed.tech/tags/production.md>), [project](<https://devfeed.tech/tags/project.md>), [settings](<https://devfeed.tech/tags/settings.md>), [staging](<https://devfeed.tech/tags/staging.md>), [strategy](<https://devfeed.tech/tags/strategy.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

This tutorial explains how to configure a Craft CMS 2.5.x project for live, staging, and local environments. It covers environment-specific settings, including development mode, template caching, databases, passwords, file-system locations, and configuration overrides.

### Source excerpt

Multi-environment configs help you work more effectively with Craft CMS. Here's an efficacious strategy