diff --git a/pages/constant.GIT_COMMIT_HASH.html b/pages/constant.GIT_COMMIT_HASH.html index 4dad853..d525c7a 100644 --- a/pages/constant.GIT_COMMIT_HASH.html +++ b/pages/constant.GIT_COMMIT_HASH.html @@ -1,3 +1,3 @@ -GIT_COMMIT_HASH in pages - Rust

Constant pages::GIT_COMMIT_HASH[][src]

pub const GIT_COMMIT_HASH: &str = "8cd9f0030da6937a959b62ba1875feb0161d8253";
+GIT_COMMIT_HASH in pages - Rust

Constant pages::GIT_COMMIT_HASH[][src]

pub const GIT_COMMIT_HASH: &str = "ef424cf070d070cc1efb975354cbc48036b9bbdb";
\ No newline at end of file diff --git a/pages/deploy/fn.services.html b/pages/deploy/fn.services.html index c7787e1..a0091ba 100644 --- a/pages/deploy/fn.services.html +++ b/pages/deploy/fn.services.html @@ -1,3 +1,3 @@ -services in pages::deploy - Rust

Function pages::deploy::services[][src]

pub fn services(cfg: &mut ServiceConfig)
+services in pages::deploy - Rust

Function pages::deploy::services[][src]

pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/pages/deploy/index.html b/pages/deploy/index.html index 5b94fdd..f5bd296 100644 --- a/pages/deploy/index.html +++ b/pages/deploy/index.html @@ -1,4 +1,4 @@ -pages::deploy - Rust

Module pages::deploy[][src]

Modules

+pages::deploy - Rust

Module pages::deploy[][src]

Modules

Structs

Functions

diff --git a/pages/fn.get_json_err.html b/pages/fn.get_json_err.html index fb53097..9f8d23b 100644 --- a/pages/fn.get_json_err.html +++ b/pages/fn.get_json_err.html @@ -1,3 +1,3 @@ -get_json_err in pages - Rust

Function pages::get_json_err[][src]

pub fn get_json_err() -> JsonConfig
+get_json_err in pages - Rust

Function pages::get_json_err[][src]

pub fn get_json_err() -> JsonConfig
\ No newline at end of file diff --git a/pages/fn.services.html b/pages/fn.services.html index 4d01941..889ebc3 100644 --- a/pages/fn.services.html +++ b/pages/fn.services.html @@ -1,3 +1,3 @@ -services in pages - Rust

Function pages::services[][src]

pub fn services(cfg: &mut ServiceConfig)
+services in pages - Rust

Function pages::services[][src]

pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/pages/index.html b/pages/index.html index 2484f61..a551671 100644 --- a/pages/index.html +++ b/pages/index.html @@ -1,4 +1,4 @@ -pages - Rust

Crate pages[][src]

Modules

+pages - Rust

Crate pages[][src]

Modules

Structs

Constants

Functions

diff --git a/search-index.js b/search-index.js index d87fdb9..53ae321 100644 --- a/search-index.js +++ b/search-index.js @@ -1,4 +1,4 @@ var searchIndex = JSON.parse('{\ -"pages":{"doc":"","t":[17,17,17,17,17,3,3,17,17,12,11,11,12,0,11,11,5,11,11,5,0,0,12,0,12,5,0,12,11,11,11,11,3,11,11,11,11,12,11,11,11,11,11,11,11,11,11,0,12,11,5,11,11,11,11,11,11,11,3,11,11,3,11,11,11,11,11,11,11,11,12,11,3,11,11,11,11,3,11,11,11,11,11,11,12,11,11,11,0,11,5,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,12,11,11,11,11,11,11,3,11,11,11,12,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,17,3,11,11,12,11,11,12,11,5,11,11,11,11,3,3,11,11,11,11,5,11,11,11,11,12,11,11,12,11,11,11,11,11,11,11,12,11,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["CACHE_AGE","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","debug","deploy","deref","from","get_json_err","initialize","into","main","meta","page","pages","routes","server","services","settings","source_code","try_from","try_into","type_id","vzip","DeployEvent","borrow","borrow","borrow_mut","borrow_mut","branch","clone","clone_into","deserialize","fmt","from","from","into","into","register","routes","secret","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","update","vzip","vzip","Deploy","borrow","borrow_mut","from","into","new","try_from","try_into","type_id","update","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deserialize","fmt","from","from","git_commit_hash","into","into","register","routes","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","from","health","into","new","try_from","try_into","type_id","vzip","Page","_fetch_upstream","borrow","borrow_mut","branch","clone","clone_into","create_repo","deserialize","fetch_upstream","fmt","from","into","path","repo","secret","to_owned","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deploy","from","into","meta","new","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","check_url","clone","clone","clone_into","clone_into","debug","deserialize","deserialize","domain","fmt","fmt","from","from","get_ip","into","into","ip","new","pages","port","proxy_has_tls","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["pages","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy::routes","","","","","","","","","","","pages::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::meta::routes","","","","","","","","","","","","pages::page","","","","","","","","","","","","","","","","","","","","","pages::routes","","","","","","","","","","","","","","pages::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,1,1,1,2,0,1,1,0,1,1,0,0,0,2,0,2,0,0,2,1,1,1,1,0,3,4,3,4,3,3,3,3,3,3,4,3,4,4,0,3,3,0,3,3,4,3,4,3,4,0,3,4,0,5,5,5,5,5,5,5,5,5,5,0,6,7,6,7,0,6,6,6,6,6,7,6,6,7,7,0,6,0,6,6,7,6,7,6,7,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,0,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,10,10,10,10,10,10,10,0,10,10,10,10,0,0,11,2,11,2,0,11,2,11,2,2,11,2,11,11,2,11,2,11,11,2,11,2,2,11,11,2,2,11,2,11,2,11,2,11,2,11,2,11],"f":[null,null,null,null,null,null,null,null,null,null,[[]],[[]],null,null,[[],["settings",3]],[[]],[[],["jsonconfig",3]],[[]],[[]],[[],["result",6]],null,null,null,null,null,[[["serviceconfig",3]]],null,null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[]],[[]],[[]],[[]],null,[[],["deployevent",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[["appservice",3]]],null,null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],null,[[]],null,[[]],[[]],[[]],[[]],null,[[],["builddetails",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],null,[[]],[[]],[[["appservice",3]]],null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],null,[[]],null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[["str",15],["repository",3]]],[[]],[[]],null,[[],["page",3]],[[]],[[],["repository",3]],[[],["result",4]],[[["str",15]]],[[["formatter",3]],["result",6]],[[]],[[]],null,null,null,[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],null,[[]],[[]],null,[[]],[[["serviceconfig",3]]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[]],[[]],[[["config",3]]],[[],["server",3]],[[],["settings",3]],[[]],[[]],null,[[],["result",4]],[[],["result",4]],null,[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[],["string",3]],[[]],[[]],null,[[],[["configerror",4],["result",4,["configerror"]]]],null,null,null,null,null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null],"p":[[3,"SETTINGS"],[3,"Settings"],[3,"DeployEvent"],[3,"update"],[3,"Deploy"],[3,"BuildDetails"],[3,"build_details"],[3,"Meta"],[3,"Page"],[3,"Routes"],[3,"Server"]]}\ +"pages":{"doc":"","t":[17,17,17,17,17,3,3,17,17,12,11,11,12,0,11,11,5,11,11,5,0,0,12,0,12,5,0,12,11,11,11,11,3,11,11,11,11,12,11,11,11,11,11,11,11,11,11,0,12,11,5,11,11,11,11,11,11,11,3,11,11,3,11,11,11,11,11,11,11,11,12,11,3,11,11,11,11,3,11,11,11,11,11,11,12,11,11,11,0,11,5,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,12,11,11,11,11,11,11,3,11,11,11,12,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,17,3,11,11,12,11,11,12,11,5,11,11,11,11,3,3,11,11,11,11,5,11,11,11,11,12,11,11,12,11,11,11,11,11,11,11,12,11,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["CACHE_AGE","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","debug","deploy","deref","from","get_json_err","initialize","into","main","meta","page","pages","routes","server","services","settings","source_code","try_from","try_into","type_id","vzip","DeployEvent","borrow","borrow","borrow_mut","borrow_mut","branch","clone","clone_into","deserialize","fmt","from","from","into","into","register","routes","secret","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","update","vzip","vzip","Deploy","borrow","borrow_mut","from","into","new","try_from","try_into","type_id","update","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deserialize","fmt","from","from","git_commit_hash","into","into","register","routes","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","from","health","into","new","try_from","try_into","type_id","vzip","Page","_fetch_upstream","borrow","borrow_mut","branch","clone","clone_into","create_repo","deserialize","fetch_upstream","fmt","from","into","path","repo","secret","to_owned","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deploy","from","into","meta","new","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","check_url","clone","clone","clone_into","clone_into","debug","deserialize","deserialize","domain","fmt","fmt","from","from","get_ip","into","into","ip","new","pages","port","proxy_has_tls","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["pages","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy::routes","","","","","","","","","","","pages::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::meta::routes","","","","","","","","","","","","pages::page","","","","","","","","","","","","","","","","","","","","","pages::routes","","","","","","","","","","","","","","pages::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,1,1,1,2,0,1,1,0,1,1,0,0,0,2,0,2,0,0,2,1,1,1,1,0,3,4,3,4,3,3,3,3,3,3,4,3,4,4,0,3,3,0,3,3,4,3,4,3,4,0,3,4,0,5,5,5,5,5,5,5,5,5,5,0,6,7,6,7,0,6,6,6,6,6,7,6,6,7,7,0,6,0,6,6,7,6,7,6,7,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,0,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,10,10,10,10,10,10,10,0,10,10,10,10,0,0,11,2,11,2,0,11,2,11,2,2,11,2,11,11,2,11,2,11,11,2,11,2,2,11,11,2,2,11,2,11,2,11,2,11,2,11,2,11],"f":[null,null,null,null,null,null,null,null,null,null,[[]],[[]],null,null,[[],["settings",3]],[[]],[[],["jsonconfig",3]],[[]],[[]],[[],["result",6]],null,null,null,null,null,[[["serviceconfig",3]]],null,null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[]],[[]],[[]],[[]],null,[[],["deployevent",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[["appservice",3]]],null,null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],null,[[]],null,[[]],[[]],[[]],[[]],null,[[],["builddetails",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],null,[[]],[[]],[[["appservice",3]]],null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],null,[[]],null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[["repository",3],["str",15]]],[[]],[[]],null,[[],["page",3]],[[]],[[],["repository",3]],[[],["result",4]],[[["str",15]]],[[["formatter",3]],["result",6]],[[]],[[]],null,null,null,[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],null,[[]],[[]],null,[[]],[[["serviceconfig",3]]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[]],[[]],[[["config",3]]],[[],["server",3]],[[],["settings",3]],[[]],[[]],null,[[],["result",4]],[[],["result",4]],null,[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[],["string",3]],[[]],[[]],null,[[],[["configerror",4],["result",4,["configerror"]]]],null,null,null,null,null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null],"p":[[3,"SETTINGS"],[3,"Settings"],[3,"DeployEvent"],[3,"update"],[3,"Deploy"],[3,"BuildDetails"],[3,"build_details"],[3,"Meta"],[3,"Page"],[3,"Routes"],[3,"Server"]]}\ }'); if (window.initSearch) {window.initSearch(searchIndex)}; \ No newline at end of file diff --git a/src/pages/deploy.rs.html b/src/pages/deploy.rs.html index aff6117..6859f62 100644 --- a/src/pages/deploy.rs.html +++ b/src/pages/deploy.rs.html @@ -104,6 +104,10 @@ 104 105 106 +107 +108 +109 +110
/*
  * Copyright (C) 2021  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -150,7 +154,11 @@
     let mut found = false;
     for page in SETTINGS.pages.iter() {
         if page.secret == payload.secret {
-            page.fetch_upstream(&page.branch);
+            web::block(|| {
+                page.fetch_upstream(&page.branch);
+            })
+            .await
+            .unwrap();
             found = true;
         }
     }
diff --git a/src/pages/main.rs.html b/src/pages/main.rs.html
index a82a16c..691ee27 100644
--- a/src/pages/main.rs.html
+++ b/src/pages/main.rs.html
@@ -90,7 +90,6 @@
 90
 91
 92
-93
 
/*
  * Copyright (C) 2021  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -164,9 +163,8 @@
                 actix_middleware::TrailingSlash::Trim,
             ))
             .configure(services)
-        //        .app_data(data.clone())
     })
-    .workers(SETTINGS.server.workers.unwrap_or(num_cpus::get()))
+    .workers(SETTINGS.server.workers.unwrap_or_else(num_cpus::get))
     .bind(SETTINGS.server.get_ip())
     .unwrap()
     .run()