Skip to content

Commit

Permalink
fix(serve): Fix site.base_url by adding http://
Browse files Browse the repository at this point in the history
No need for clone
  • Loading branch information
Geobert Quach committed Jan 29, 2018
1 parent de7b6d0 commit 1a3ae38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cobalt/serve.rs
Expand Up @@ -44,7 +44,7 @@ pub fn serve_command(matches: &clap::ArgMatches) -> Result<()> {

let mut config = args::get_config(matches)?;
debug!("Overriding config `site.base_url` with `{}`", ip);
config.site.base_url = Some(ip.clone());
config.site.base_url = Some(format!("http://{}", ip));
let config = config.build()?;
let dest = path::Path::new(&config.destination).to_owned();

Expand Down

0 comments on commit 1a3ae38

Please sign in to comment.