Skip to content

Commit 4b4df79

Browse files
committed
Fix configs
1 parent c4e7539 commit 4b4df79

File tree

4 files changed

+26
-46
lines changed

4 files changed

+26
-46
lines changed

etc/env/configs/dev_validium.toml

-18
This file was deleted.

etc/env/configs/dev_validium_docker.toml

-26
This file was deleted.

etc/env/configs/ext-node-docker.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
__imports__ = [ "configs/ext-node.toml" ]
2+
13
database_url = "postgres://postgres:notsecurepassword@postgres/_ext_node"
24
template_database_url = "postgres://postgres:notsecurepassword@postgres/zksync_local"
35
test_database_url = "postgres://postgres:notsecurepassword@host:5433/zksync_local_test_ext_node"
46

5-
__imports__ = [ "configs/ext-node.toml" ]
6-
77
[en]
88
eth_client_url = "http://reth:8545"
99

infrastructure/zk/src/config.ts

+24
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,30 @@ export function pushConfig(environment?: string, diff?: string) {
151151
false
152152
);
153153

154+
// we want to be able to run multiple chains locally, but not break the CI
155+
if (!process.env.IN_DOCKER) {
156+
env.modify('DATABASE_URL', `postgres://postgres:notsecurepassword@localhost/${environment}`, l2InitFile, false);
157+
env.modify(
158+
'TEST_DATABASE_URL',
159+
`postgres://postgres:notsecurepassword@localhost/${environment}_test`,
160+
l2InitFile,
161+
false
162+
);
163+
164+
env.modify(
165+
'DATABASE_PROVER_URL',
166+
`postgres://postgres:notsecurepassword@localhost/prover_${environment}`,
167+
l2InitFile,
168+
false
169+
);
170+
env.modify(
171+
'TEST_DATABASE_PROVER_URL',
172+
`postgres://postgres:notsecurepassword@localhost/prover_${environment}_test`,
173+
l2InitFile,
174+
false
175+
);
176+
}
177+
154178
env.modify('DATABASE_STATE_KEEPER_DB_PATH', `./db/${environment}/state_keeper`, l2InitFile, false);
155179
env.modify('DATABASE_MERKLE_TREE_PATH', `./db/${environment}/tree`, l2InitFile, false);
156180
env.modify('DATABASE_MERKLE_TREE_BACKUP_PATH', `./db/${environment}/backups`, l2InitFile, false);

0 commit comments

Comments
 (0)