项目作者: ItinerisLtd

项目描述 :
Deceive Ansible to template Trellis .env files to local Bedrock
高级语言: TypeScript
项目地址: git://github.com/ItinerisLtd/enveigle.git
创建时间: 2018-11-29T21:14:10Z
项目社区:https://github.com/ItinerisLtd/enveigle

开源协议:MIT License

下载


This project has been ported to roots/trellis-cli and been abandoned.

Use roots/trellis-cli instead and checkout similar tools by:


enveigle (Abandoned)

Deceive Ansible to template Trellis .env files to local Bedrock

oclif
@itinerisltd/enveigle"">Version
@itinerisltd/enveigle"">Downloads/week
License
Hire Itineris

Goal

Populate .env files to local Bedrock with ansible so that we can develop with valet instead of vagrant while keeping ansible vault, wordpress_env_defaults and all ansible goodies.

Requirements

  • Trellis
  • Bedrock
  • Anisble v2 or later
  • NodeJS v10.13.0 or later

Installation

$ npx @itinerisltd/enveigle just work! No installation required.

Usage

  1. $ cd /path/to/trellis
  2. # For normal Trellis setup
  3. $ npx @itinerisltd/enveigle
  4. # For brave developers
  5. $ npx @itinerisltd/enveigle --env=my-custom-dev-env --callback_dir=callback_dir=/path/to/my/callback/dir
  6. # For the confused
  7. $ npx @itinerisltd/enveigle --help
  8. Deceive Ansible to template Trellis .env files to local Bedrock
  9. USAGE
  10. $ npx @itinerisltd/enveigle
  11. OPTIONS
  12. -c, --callback_dir=callback_dir [default: lib/trellis/plugins/callback] ansible callback directory
  13. -e, --env=env [default: development] local environment name
  14. -h, --help show CLI help
  15. -v, --version show CLI version

FAQ

Can I change default flag values?

Yes. You can change them via environment variables.

These 2 commands are equivalent:

  1. $ ENVEIGLE_ENV=my-env ENVEIGLE_CALLBACK_DIR=/my/callback/dir npx @itinerisltd/enveigle
  2. $ npx @itinerisltd/enveigle --env=my-env --callback_dir=callback_dir=/my/callback/dir

Can I install enveigle instead of using $ npx?

Yes. However, you are responsible for updating it.

  1. # yarn or npm doesn't matter
  2. $ yarn global add @itinerisltd/enveigle
  3. $ cd /path/to/trellis
  4. $ enveigle

Why not commit enveigle.yml under git?

Because we have too many sites to maintain, adding/updating enveigle.yml to all of our sites is tedious.

It looks awesome. Where can I find some more goodies like this?

This isn’t on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?

Thanks! Glad you like it. It’s important to make my boss know somebody is using this project. Instead of giving reviews on wp.org, consider:

Feedback

Please provide feedback! We want to make this library useful in as many projects as possible.
Please submit an issue and point out what you do and don’t like, or fork the project and make suggestions.
No issue is too small.

Security

If you discover any security related issues, please email hello@itineris.co.uk instead of using the issue tracker.

Change log

Please see CHANGELOG for more information on what has changed recently.

Credits

enveigle is a Itineris Limited project created by Tang Rufus.

Full list of contributors can be found here.

License

enveigle is released under the MIT License.