summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/images.rs2
-rw-r--r--src/render.rs18
2 files changed, 9 insertions, 11 deletions
diff --git a/src/images.rs b/src/images.rs
index 11daaea..30019ca 100644
--- a/src/images.rs
+++ b/src/images.rs
@@ -48,7 +48,7 @@ fn inspect(project: &Project, name: &str) -> Result<Value> {
records
.into_iter()
.next()
- .context("Docker returned no image")
+ .context("Podman returned no image")
}
pub(crate) fn save(project: &Project, containers: &[Value], destination: &Path) -> Result<()> {
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 {