Move environment configuration to root

This commit is contained in:
Eric Meyer 2017-11-14 09:10:48 -06:00
parent 1889dcad5a
commit a23023f7d6
4 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@
Gododir/godobin-*
test_data_dir/
vendor/
pkg/config/environments/*.toml
environments/*.toml

View File

@ -77,7 +77,7 @@ The default location for Ethereum is:
You can create configuration files for additional environments.
* Among other things, it will require the IPC file path
* See `pkg/config/environments/private.toml` for an example
* See `environments/private.toml` for an example
* You will need to do this if you want to run a node connecting to the public blockchain
## Running the Tests

View File

@ -27,7 +27,7 @@ var NewErrConfigFileNotFound = func(environment string) error {
func NewConfig(environment string) (*Config, error) {
filenameWithExtension := fmt.Sprintf("%s.toml", environment)
absolutePath := filepath.Join(ProjectRoot(), "pkg", "config", "environments", filenameWithExtension)
absolutePath := filepath.Join(ProjectRoot(), "environments", filenameWithExtension)
config, err := parseConfigFile(absolutePath)
if err != nil {
return nil, NewErrConfigFileNotFound(environment)