This commit is contained in:
2025-10-10 11:05:50 +01:00
parent 4a6c3bc49c
commit 5e991d9fe0
6 changed files with 33 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold", "-Zshare-generics=y"]
[unstable]
codegen-backend = true
[profile.dev]
codegen-backend = "cranelift"
[profile.dev.package."*"]
codegen-backend = "llvm"
+2 -1
View File
@@ -6,7 +6,8 @@ ARG DATABASE_URL
WORKDIR /build WORKDIR /build
COPY .cargo .cargo # we don't want to copy this for now as we're using unstable settings for faster debug builds!
# COPY .cargo .cargo
COPY cdn cdn COPY cdn cdn
COPY src src COPY src src
COPY Cargo.toml Cargo.toml COPY Cargo.toml Cargo.toml
-1
View File
@@ -3,7 +3,6 @@ use std::time::{SystemTime, UNIX_EPOCH};
use rand::Rng; use rand::Rng;
use rocket::{ use rocket::{
Request, Request,
fs::NamedFile,
http::{CookieJar, Status}, http::{CookieJar, Status},
outcome::{Outcome, try_outcome}, outcome::{Outcome, try_outcome},
post, post,
+1 -1
View File
@@ -60,7 +60,7 @@
</div> </div>
<div class="signup-footer"> <div class="signup-footer">
Already have an account? <a href="/login">Log in</a> Dont have an account? <a href="/signup">Sign up</a>
</div> </div>
</div> </div>
+1 -1
View File
@@ -101,7 +101,7 @@
</div> </div>
<div class="signup-footer"> <div class="signup-footer">
Already have an account? <a href="#">Log in</a> Already have an account? <a href="/login">Login</a>
</div> </div>
</div> </div>
+17
View File
@@ -0,0 +1,17 @@
services:
backend:
build:
context: ./backend
args:
- DATABASE_URL=${DATABASE_URL}
ports:
- "8000:8000"
depends_on:
- redis
environment:
- ROCKET_SECRET_KEY=${ROCKET_SECRET_KEY}
- DATABASE_URL=${DATABASE_URL}
redis:
image: docker.io/library/redis:alpine
ports:
- "6379:6379"