Skip to content

Commit

Permalink
chore: test dockerhub build
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 18, 2024
1 parent 0cc7d1e commit ba45e8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
my-eclipse:
image: tagoio/tago-relay:latest
image: tagoio/relay:latest
restart: always
ports:
- "3001:3001"
Expand Down
6 changes: 6 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ pub fn init_config(user_path: Option<impl AsRef<str>>) {
std::process::exit(1);
}

let config_dir = config_path.parent().expect("Failed to get config directory");
if !config_dir.exists() {
log::info!(target: "info", "Creating config directory at {}", config_dir.display());
std::fs::create_dir_all(config_dir).expect("Failed to create config directory");
}

std::fs::write(&config_path, DEFAULT_CONFIG).expect("Failed to create default config file");

log::info!("Configuration file created at {}", config_path.display());
Expand Down

0 comments on commit ba45e8b

Please sign in to comment.