env_sync helps to manage .env
files of some repositories.
Setup env.yaml
and just apply! env_sync creates .env
files each of your related repositories.
- dir: "/hoge"
content: |
HOGE=fuga
FOO=bar
- dir: "~/User/code"
content: |
PIYO=piyo
file: .env.development
- dir: "fuga"
content: |
PIYO=piyo
$ env_sync env.yaml
You will find /hoge/.env
, ~/User/code/.env.development
, ./fuga/.env
dir
: copy destination directorycontent
: contents of .env filefile
(optional): name of .env file (sometimes prefer.env.development
)
$ gem install env_sync
$ env_sync path/to/env.yaml
$ rake
The gem is available as open source under the terms of the MIT License.