cargo zigbuild --target $target
}
- # invoke_ssh [sudo systemctl stop $app_name]
+ # invoke_ssh $"sudo systemctl stop ($app_name)"
copy_ssh ./target/($target)/($build)/($app_name) $destination
invoke_ssh $"chmod u+x ($destination)/($app_name)"
- # invoke_ssh [sudo systemctl start $app_name]
+ # invoke_ssh $"sudo systemctl start ($app_name)"
print "Deployment finished"
}
\ No newline at end of file
Description=staking_watchdog
[Service]
+User=gburri
WorkingDirectory=/home/gburri/staking_watchdog
ExecStart=/home/gburri/staking_watchdog/staking_watchdog
SyslogIdentifier=staking_watchdog
let config = Config::read(FILE_CONF)?;
- println!("Configuration: {:?}", config);
+ println!(
+ "Configuration: {:?}",
+ Config {
+ smtp_password: "*****".to_string(),
+ ..config.clone()
+ }
+ );
let mut time_last_email_send = time::Instant::now() - EMAIL_RESEND_PERIOD;