AOEpeople/zettr

Name: zettr

Owner: AOE

Description: null

Created: 2015-10-06 06:27:35.0

Updated: 2017-09-05 10:40:32.0

Pushed: 2017-02-21 01:05:43.0

Homepage: null

Size: 1823

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Zettr

Build Status

Author: Fabrizio Branca

(formerly known as “EnvSettingsTool”)

What's a “setting”?

A 'setting' is everything that's different from one environment to another. During the installation the project needs to be 'adapted' to the target environment you're deploying it to. These values can't be hardcoded and they also shouldn't have to be changed manually after the installation.

The classic (and obvious) settings are urls, database parameters, maybe cache backend settings and payment provider configuration (you're probably using a sandbox in all non-production environments).

But really there are a lot more settings that you might want to control via Zettr:

And even if some specific settings are the same for all of your environments you might want to consider adding them to your settings file in order to enforce them being in place every time you run the tool (every time you install a new build) or in order to roll out values for settings you're introducing in your codebase.

Warning

Settings that are controlled via Zettr can still be overwritten in Magento. Zettr doesn't “lock” those settings and the user will not even notice that this value is “remote controlled” and will be overwritten on the next deployment.

Best practice
Make sure there are no leftovers by deleting all values in all stores first

(Insert example for % % –delete–)

Commands
e:
ttr.phar apply [--dryRun] [--groups=GROUPS] [--excludeGroups=EXCLUDEGROUPS] <environment> <file1.csv> [<file2.csv>]

ple:
ttr.phar apply devbox ../Configuration/settings.csv

Root dir = CWD (or --rootDir)

apply

File format

also used to enforce settings via version control Settings injection Why csv?

used for Magento, but not restricted to

What's a handler?

fixed set of 3 param

How to specify a handler (1st column of the csv file):

How to


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.