fix(deploy): use the static folder for config (#70)
This commit is contained in:
parent
aa1734b3f8
commit
4df136870a
|
@ -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| {
|
||||
|
|
Loading…
Reference in New Issue