Compare commits
3 Commits
71213f26ef
...
4a59783cd4
Author | SHA1 | Date | |
---|---|---|---|
4a59783cd4 | |||
dde27118ed | |||
ad89fb7fc0 |
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "projects/finals-fe1"]
|
||||
path = projects/finals-fe1
|
||||
url = git@github.com:jabuxas/projeto-1-lucas.git
|
@ -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
1
projects/finals-fe1
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f56d1b5fb67ca8ae1ea550ee647f0fc264fd2baf
|
@ -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"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user