diff --git a/Cargo.toml b/Cargo.toml index d2ce645..6a0f297 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -138,6 +138,9 @@ opt-level = 0 [profile.dev.package."*"] opt-level = 3 +[profile.dev.build-override] +opt-level = 3 + [[bin]] path = "src/main.rs" name = "citadels" diff --git a/Dockerfile b/Dockerfile index 8fb4dbf..6c9346e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ COPY vendor/ vendor/ RUN cargo chef cook --release --recipe-path recipe.json # Build application COPY . . +COPY .sqlx/ .sqlx/ # Temporary: remove dev flag later RUN cargo build --release --bin citadels --features=dev diff --git a/src/markup/dev.rs b/src/markup/dev.rs index 5f9b905..875ca43 100644 --- a/src/markup/dev.rs +++ b/src/markup/dev.rs @@ -21,13 +21,14 @@ pub fn page(cookies: &Cookies, users: &[Profile]) -> Markup { pub fn profile_form(profile: &Profile) -> Markup { html! { - form hx-post="/dev/create-profile" { + form hx-post="/dev/create-profile" hx-swap="none" { label { "Email" input.input.input-primary type="text" required name="email" value=(profile.email); } + label { "Username" input.input.input-primary