Skip to content

Currently only allows 'production' and 'staging' environments #3

@paulgoodfield

Description

@paulgoodfield

The current way this CLI tool is set up only allows you to use the standard 'production' and 'staging' environments that we normally use in our deployment workflows.

To make this more flexible it would be better if you create any number of environments and be able to do the normal commands with any.

Example:

If you'd set up a third environment called 'testing', you would be able to do:

toward assets push -e testing

Proposed Solution

In the .toward file, it would use the first part of the variable names as the environment name.

Example:

If I had the following variables added after the normal vars for production and staging environments in the .toward file...

TESTING_SERVER_IP=
TESTING_SERVER_ADDRESS=
TESTING_SERVER_USERNAME=
TESTING_SITE_DIRECTORY=
TESTING_DATABASE_NAME=
TESTING_DATABASE_USERNAME=
TESTING_DATABASE_PASSWORD=

...then it would automatically understand to use these vars when I ran the command toward assets push -e testing

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions