omni_forge/main.rs
1//-----------------------------------------------------------------------------
2// OmniForge - A Rust-based Free and open-source application deployment and
3// lifecycle management platform built for the modern era or cloud native apps.
4//
5// Authors: Tristan J. Poland, Chance Green, SafeShows
6//-----------------------------------------------------------------------------
7
8use rocket::launch;
9use rocket::routes;
10
11pub mod api;
12mod autoscalar;
13mod image_builder;
14pub mod interfaces;
15
16#[launch]
17pub async fn start_server() -> _ {
18 let port = 3030;
19 rocket::build()
20 .configure(rocket::Config {
21 port,
22 address: std::net::IpAddr::V4(std::net::Ipv4Addr::new(0, 0, 0, 0)),
23 ..Default::default()
24 })
25 .mount("/", routes![api::build,api::deploy_permissions])
26}