Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder stage – use a Rust image and install native tools
FROM rust:1.82 AS builder
FROM rust:1.88 AS builder

# Install CMake, C/C++ toolchain, pkg-config, and SSL headers so prost-build can compile Protobuf
RUN apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Then, we can similarly auto-mount via `fstab` as we did with locally connected d
```
7. Edit `/etc/fstab` to include a line for your new entry for mounting via `SSHFS` and your working SSH key. An example of mounting to `/mnt/immich_remote` for the user `user`, ip `192.168.10.44`, and remote's `/mnt/.immich`:
```
user@192.168.10.44:/mnt/.immich /mnt/immich_remote fuse.sshfs ro,allow_other,_netdev,IdentityFile=/root/.ssh/id_rsa,users,idmap=user,follow_symlinks 0 0
user@192.168.10.44:/mnt/.immich /mnt/immich_remote fuse.sshfs ro,allow_other,_netdev,IdentityFile=/root/.ssh/id_rsa,users,idmap=user,follow_symlinks,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 0 0
```
8. Save the file and apply with `mount -a`.

Expand Down
1 change: 1 addition & 0 deletions rust-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ chrono-tz = "0.6"
cron = "0.8"
dotenv = "0.15"
fs2 = "0.4"
home = "0.5.10"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sqlx = { version = "0.7", features = ["runtime-tokio", "postgres", "chrono"] }
Expand Down
4 changes: 4 additions & 0 deletions rust-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ use scheduler::{

#[tokio::main]
async fn main() -> anyhow::Result<()> {
eprintln!("DEBUG: rust-server starting...");

// Initialize logging
fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_ansi(false)
.init();

tracing::info!("Logging initialized");

// Load config & DB
let cfg = Config::from_env()?;
let pool = init_db(&cfg.database_url).await?;
Expand Down