|
|
@ -11,7 +11,7 @@ use sqlx::{SqlitePool, sqlite::SqlitePoolOptions};
|
|
|
|
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() {
|
|
|
|
async fn main() {
|
|
|
|
let port = env::var("TTC_PORT").unwrap_or("3000".into()).parse().unwrap();
|
|
|
|
let port = env::var("TTC_PORT").unwrap_or("9000".into()).parse().unwrap();
|
|
|
|
let pool = SqlitePoolOptions::new()
|
|
|
|
let pool = SqlitePoolOptions::new()
|
|
|
|
.max_connections(5)
|
|
|
|
.max_connections(5)
|
|
|
|
.connect(env::var("TTC_DATABASE_URL")
|
|
|
|
.connect(env::var("TTC_DATABASE_URL")
|
|
|
|