Update main

This commit is contained in:
mStar aka a person 2024-01-01 13:38:37 +00:00
parent ab7fad6a62
commit 4d7a81dd25

View file

@ -8,6 +8,8 @@
// See the Licence for the specific language governing permissions and limitations under the Licence.
//
use anyhow::Error;
mod objects;
mod apis;
mod storage;
@ -16,6 +18,8 @@ mod config;
mod webui;
fn main() {
let _ = storage::establish_connection("./src/storage/db.sqlite");
fn main() -> Result<(), Error> {
let conf = config::read_from_env()?;
let _db = storage::establish_connection(&conf.database_path)?;
Ok(())
}