Compare commits
No commits in common. "4a59783cd4803731aea0fc88043b59295b157b39" and "71213f26ef59efdd47f60836adb08c0984392cc1" have entirely different histories.
4a59783cd4
...
71213f26ef
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
|||||||
[submodule "projects/finals-fe1"]
|
|
||||||
path = projects/finals-fe1
|
|
||||||
url = git@github.com:jabuxas/projeto-1-lucas.git
|
|
@ -1,11 +1,8 @@
|
|||||||
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 +0,0 @@
|
|||||||
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::{fs::FileServer, http::ContentType, response::content::RawHtml};
|
use rocket::{http::ContentType, response::content::RawHtml};
|
||||||
use rust_embed::Embed;
|
use rust_embed::Embed;
|
||||||
|
|
||||||
#[derive(Embed)]
|
#[derive(Embed)]
|
||||||
@ -31,7 +31,5 @@ fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
|
|||||||
|
|
||||||
#[launch]
|
#[launch]
|
||||||
fn rocket() -> _ {
|
fn rocket() -> _ {
|
||||||
rocket::build()
|
rocket::build().mount("/", routes![index, dist])
|
||||||
.mount("/", routes![index, dist])
|
|
||||||
.mount("/projects", FileServer::from("./projects"))
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user