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:
|
services:
|
||||||
web-server:
|
web-server:
|
||||||
image: git.jabuxas.com/jabuxas/refinement:latest
|
image: git.jabuxas.com/jabuxas/refinement:latest
|
||||||
|
# build: .
|
||||||
ports:
|
ports:
|
||||||
- "8880:8000"
|
- "8880:8000"
|
||||||
environment:
|
environment:
|
||||||
ROCKET_ADDRESS: 0.0.0.0
|
ROCKET_ADDRESS: 0.0.0.0
|
||||||
|
volumes:
|
||||||
|
- "./projects:/projects"
|
||||||
restart: unless-stopped
|
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 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;
|
use rust_embed::Embed;
|
||||||
|
|
||||||
#[derive(Embed)]
|
#[derive(Embed)]
|
||||||
@ -31,5 +31,7 @@ fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
|
|||||||
|
|
||||||
#[launch]
|
#[launch]
|
||||||
fn rocket() -> _ {
|
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