avoid injecting ENV vars from Makefile
So that we can run "cargo build" without setting vars manually.
This commit is contained in:
@ -12,6 +12,7 @@ use proxmox_backup::server;
|
||||
use proxmox_backup::tools::daemon;
|
||||
use proxmox_backup::auth_helpers::*;
|
||||
use proxmox_backup::config;
|
||||
use proxmox_backup::buildcfg;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
@ -48,7 +49,7 @@ async fn run() -> Result<(), Error> {
|
||||
}
|
||||
|
||||
let config = ApiConfig::new(
|
||||
env!("PROXMOX_JSDIR"), &ROUTER, RpcEnvironmentType::PRIVILEGED);
|
||||
buildcfg::JS_DIR, &ROUTER, RpcEnvironmentType::PRIVILEGED);
|
||||
|
||||
let rest_server = RestServer::new(config);
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
use proxmox_backup::configdir;
|
||||
use proxmox_backup::buildcfg;
|
||||
use proxmox_backup::server;
|
||||
use proxmox_backup::tools::daemon;
|
||||
use proxmox_backup::api_schema::router::*;
|
||||
@ -41,7 +42,7 @@ async fn run() -> Result<(), Error> {
|
||||
}
|
||||
|
||||
let mut config = ApiConfig::new(
|
||||
env!("PROXMOX_JSDIR"), &ROUTER, RpcEnvironmentType::PUBLIC);
|
||||
buildcfg::JS_DIR, &ROUTER, RpcEnvironmentType::PUBLIC);
|
||||
|
||||
// add default dirs which includes jquery and bootstrap
|
||||
// my $base = '/usr/share/libpve-http-server-perl';
|
||||
|
Reference in New Issue
Block a user