forked from cerc-io/ipld-eth-server
Move environment configuration to root
This commit is contained in:
parent
1889dcad5a
commit
a23023f7d6
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,4 +2,4 @@
|
||||
Gododir/godobin-*
|
||||
test_data_dir/
|
||||
vendor/
|
||||
pkg/config/environments/*.toml
|
||||
environments/*.toml
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user