Update main
This commit is contained in:
parent
ab7fad6a62
commit
4d7a81dd25
1 changed files with 6 additions and 2 deletions
|
@ -8,6 +8,8 @@
|
||||||
// See the Licence for the specific language governing permissions and limitations under the Licence.
|
// See the Licence for the specific language governing permissions and limitations under the Licence.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
use anyhow::Error;
|
||||||
|
|
||||||
mod objects;
|
mod objects;
|
||||||
mod apis;
|
mod apis;
|
||||||
mod storage;
|
mod storage;
|
||||||
|
@ -16,6 +18,8 @@ mod config;
|
||||||
mod webui;
|
mod webui;
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() -> Result<(), Error> {
|
||||||
let _ = storage::establish_connection("./src/storage/db.sqlite");
|
let conf = config::read_from_env()?;
|
||||||
|
let _db = storage::establish_connection(&conf.database_path)?;
|
||||||
|
Ok(())
|
||||||
}
|
}
|
Loading…
Reference in a new issue