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.
|
||||
//
|
||||
|
||||
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(())
|
||||
}
|
Loading…
Reference in a new issue