move dev to different ports

This commit is contained in:
Bryan Stitt 2022-08-06 05:49:52 +00:00
parent 2811c84c25
commit 2524168a0e
6 changed files with 8 additions and 8 deletions

2
.env
View File

@ -1 +1 @@
DATABASE_URL=mysql://root:dev_web3_proxy@127.0.0.1:3306/web3_proxy
DATABASE_URL=mysql://root:dev_web3_proxy@127.0.0.1:13306/dev_web3_proxy

View File

@ -64,7 +64,7 @@ You can copy `config/example.toml` to `config/production-$CHAINNAME.toml` and th
Types for database entities are generated from a development database.
```
sea-orm-cli generate entity -u mysql://root:dev_web3_proxy@127.0.0.1:3306/dev_web3_proxy -o entities/src
sea-orm-cli generate entity -u mysql://root:dev_web3_proxy@127.0.0.1:13306/dev_web3_proxy -o entities/src
```
Then manually fix some columns: `Vec<u8>` -> `sea_orm::prelude::Uuid` and `i8` -> `bool`. Related: <https://github.com/SeaQL/sea-query/issues/375> <https://github.com/SeaQL/sea-orm/issues/924>

View File

@ -6,7 +6,7 @@ services:
dev-redis:
build: ./redis-cell-server/
ports:
- 127.0.0.1:6379:6379
- 127.0.0.1:16379:6379
# TODO: expose these ports?
dev-db:
@ -15,7 +15,7 @@ services:
MYSQL_ROOT_PASSWORD: dev_web3_proxy
MYSQL_DATABASE: dev_web3_proxy
ports:
- 127.0.0.1:3306:3306
- 127.0.0.1:13306:3306
volumes:
- ./data/dev_mysql:/var/lib/mysql

View File

@ -1,4 +1,4 @@
//! Web3-proxy is a fast caching and load balancing proxy for web3 (Ethereum or similar) JsonRPC servers.
//! Web3_proxy is a fast caching and load balancing proxy for web3 (Ethereum or similar) JsonRPC servers.
//!
//! Signed transactions (eth_sendRawTransaction) are sent in parallel to the configured private RPCs (eden, ethermine, flashbots, etc.).
//!
@ -131,7 +131,7 @@ fn main() -> anyhow::Result<()> {
let app_config: AppConfig = toml::from_str(&app_config)?;
// TODO: this doesn't seem to do anything
proctitle::set_title(format!("web3-proxy-{}", app_config.shared.chain_id));
proctitle::set_title(format!("web3_proxy-{}", app_config.shared.chain_id));
let (_shutdown_sender, shutdown_receiver) = flume::bounded(1);

View File

@ -11,7 +11,7 @@ pub struct TopConfig {
/// what database the client should connect to
#[argh(
option,
default = "\"mysql://root:dev_web3_proxy@127.0.0.1:3306/dev_web3_proxy\".to_string()"
default = "\"mysql://root:dev_web3_proxy@127.0.0.1:13306/dev_web3_proxy\".to_string()"
)]
pub db_url: String,

View File

@ -1,4 +1,4 @@
/// this should move into web3-proxy once the basics are working
/// this should move into web3_proxy once the basics are working
mod errors;
mod http;
mod http_proxy;