summaryrefslogtreecommitdiff
path: root/src/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.rs')
-rw-r--r--src/render.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/render.rs b/src/render.rs
index dea7e28..a552643 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -37,16 +37,14 @@ pub(crate) fn prepare(project: &Project, settings: &Settings) -> Result<()> {
fs::remove_dir_all(&web)?;
}
files::copy_tree(&project.root.join("web"), &web)?;
- for name in ["index.html", "message/index.html"] {
- let file = web.join(name);
- files::write(
- &file,
- config
- .render(&fs::read_to_string(&file)?, local)?
- .as_bytes(),
- 0o644,
- )?;
- }
+ let file = web.join("index.html");
+ files::write(
+ &file,
+ config
+ .render(&fs::read_to_string(&file)?, local)?
+ .as_bytes(),
+ 0o644,
+ )?;
let template = project.root.join(if settings.mode == Mode::Local {
"infra/Caddyfile.local"
} else {