Compare commits
2 commits
2e9856eee5
...
f4aef5e3ab
Author | SHA1 | Date | |
---|---|---|---|
f4aef5e3ab | |||
ad98e71540 |
2 changed files with 1 additions and 7 deletions
|
@ -31,13 +31,8 @@ run `sqlx database setup`
|
||||||
|
|
||||||
then finally run the server with `cargo run`
|
then finally run the server with `cargo run`
|
||||||
|
|
||||||
## CLI tools
|
|
||||||
|
|
||||||
add `--help` or `-h` when calling the binary for special tools, such as patching executables.
|
|
||||||
|
|
||||||
## todo
|
## todo
|
||||||
|
|
||||||
- add get levels search back (find how to easily do dynamic queries)
|
|
||||||
- user icons in account management pages
|
- user icons in account management pages
|
||||||
- account settings page
|
- account settings page
|
||||||
- better web design (make formatting more consistant)
|
- better web design (make formatting more consistant)
|
||||||
|
|
|
@ -25,11 +25,10 @@ async fn files(file: PathBuf) -> Option<NamedFile> {
|
||||||
|
|
||||||
#[launch]
|
#[launch]
|
||||||
async fn rocket() -> _ {
|
async fn rocket() -> _ {
|
||||||
// init stuff
|
// initiate database stuff
|
||||||
crate::helpers::reupload::init().await;
|
crate::helpers::reupload::init().await;
|
||||||
|
|
||||||
// data directories
|
// data directories
|
||||||
// unhardcore this maybe?
|
|
||||||
fs::create_dir_all(config::config_get_with_default("db.data_folder", "data".to_string())).expect("failed to create data directory!");
|
fs::create_dir_all(config::config_get_with_default("db.data_folder", "data".to_string())).expect("failed to create data directory!");
|
||||||
fs::create_dir_all(format!("{}/levels", config::config_get_with_default("db.data_folder", "data".to_string()))).expect("failed to create data directory for levels");
|
fs::create_dir_all(format!("{}/levels", config::config_get_with_default("db.data_folder", "data".to_string()))).expect("failed to create data directory for levels");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue