docker-compose up &docker-compose exec web bash
-
In docker:
(cd frontend && npm install)
In docker:
cargo cmd serve
and visit 127.0.0.1:8000. Frontend and backend should both hot reload. All requests are served by vue, with some requests proxied through to actix-web, which is running on port 8001.
In docker:
cargo build --release
The complete web server binary is in ./target/release/holiday-card
The binary can be configured with environment variables. Here is the default configuration:
BIND_ADDR=127.0.0.1:8000 PICTURES_DIR=pictures REINDEX_SECONDS=60 holiday-card
The above command tells the web server to bind to port 8000 on localhost; serve pictures from the "pictures" directory (relative or absolute path); and reindex the directory every 60 seconds.
The binary is not compiled with SSL support, and should be run behind a reverse proxy like nginx.
In docker:
cargo deb