mirror of
https://github.com/Nutomic/ibis.git
synced 2024-12-27 01:41:24 +00:00
16 lines
519 B
Rust
16 lines
519 B
Rust
#[cfg(feature = "ssr")]
|
|
#[tokio::main]
|
|
pub async fn main() -> ibis::backend::error::MyResult<()> {
|
|
use log::LevelFilter;
|
|
env_logger::builder()
|
|
.filter_level(LevelFilter::Warn)
|
|
.filter_module("activitypub_federation", LevelFilter::Info)
|
|
.filter_module("ibis", LevelFilter::Info)
|
|
.init();
|
|
let database_url = "postgres://ibis:password@localhost:5432/ibis";
|
|
ibis::backend::start("localhost:8131", database_url).await?;
|
|
Ok(())
|
|
}
|
|
|
|
#[cfg(not(feature = "ssr"))]
|
|
fn main() {}
|