fix(deploy): use the static folder for config (#70)

This commit is contained in:
Orhun Parmaksız 2023-06-23 18:33:05 +03:00
parent aa1734b3f8
commit 4df136870a
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
1 changed files with 2 additions and 2 deletions

View File

@ -180,10 +180,10 @@ async fn main() -> IoResult<()> {
#[cfg(feature = "shuttle")]
#[shuttle_runtime::main]
async fn actix_web(
#[shuttle_static_folder::StaticFolder(folder = "shuttle")] _static_folder: PathBuf,
#[shuttle_static_folder::StaticFolder(folder = "shuttle")] static_folder: PathBuf,
) -> ShuttleActixWeb<impl FnOnce(&mut ServiceConfig) + Send + Clone + 'static> {
// Set up the application.
let (config, server_config, _hotwatch) = setup(&PathBuf::new())?;
let (config, server_config, _hotwatch) = setup(&static_folder)?;
// Create the service.
let service_config = move |cfg: &mut ServiceConfig| {