Compare commits

..

3 Commits

Author SHA1 Message Date
4a59783cd4 ci: project mount 2025-02-16 09:22:26 -03:00
dde27118ed chore: add fe1 finals project submodule 2025-02-16 09:21:57 -03:00
ad89fb7fc0 feat: add serving uni projects 2025-02-16 09:13:32 -03:00
4 changed files with 11 additions and 2 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "projects/finals-fe1"]
path = projects/finals-fe1
url = git@github.com:jabuxas/projeto-1-lucas.git

View File

@ -1,8 +1,11 @@
services:
web-server:
image: git.jabuxas.com/jabuxas/refinement:latest
# build: .
ports:
- "8880:8000"
environment:
ROCKET_ADDRESS: 0.0.0.0
volumes:
- "./projects:/projects"
restart: unless-stopped

1
projects/finals-fe1 Submodule

@ -0,0 +1 @@
Subproject commit f56d1b5fb67ca8ae1ea550ee647f0fc264fd2baf

View File

@ -3,7 +3,7 @@ extern crate rocket;
use std::{borrow::Cow, ffi::OsStr, path::PathBuf};
use rocket::{http::ContentType, response::content::RawHtml};
use rocket::{fs::FileServer, http::ContentType, response::content::RawHtml};
use rust_embed::Embed;
#[derive(Embed)]
@ -31,5 +31,7 @@ fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index, dist])
rocket::build()
.mount("/", routes![index, dist])
.mount("/projects", FileServer::from("./projects"))
}