Skip to content

Commit e669011

Browse files
committed
remove chdir on startup
#141
1 parent 7ba6105 commit e669011

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ async fn main() {
1515
async fn start() -> anyhow::Result<()> {
1616
let app_config = app_config::load()?;
1717
log::debug!("Starting with the following configuration: {app_config:?}");
18-
std::env::set_current_dir(&app_config.web_root)?;
19-
log::info!(
20-
"Set the working directory to {}",
21-
app_config.web_root.display()
22-
);
2318
let state = AppState::init(&app_config).await?;
2419
webserver::database::migrations::apply(&state.db).await?;
2520
log::info!("Starting server on {}", app_config.listen_on);

0 commit comments

Comments
 (0)