- Copy and fill
.env.template
to.env
. - When using SSL with postgres
2. Download and rename database SSL certificates to
certs
folder, see Dockerfile. 3. Change the cert permissionschmod -R 700 certs
- Run
cargo run --bin migrate -- --version setup
to initialize the db. - Add a record to _apex_config with key "seed" and a random 32 bit integer string value
Building the project manually
cargo build
Building the project via dockerDOCKER_BUILDKIT=1 docker build . -t apex-rs:latest
Running the project manually
cargo run . --bin server
cargo run . --bin importer
Running the project via docker
docker run -t apex-rs:latest /usr/local/bin/server
(default without arg)docker run -t apex-rs:latest /usr/local/bin/importer
For compiling
brew install autoconf automake cmake libtool openssl
git clone https://github.com/cyrusimap/cyrus-sasl.git && cd cyrus-sasl
sh ./autogen.sh
make
sudo make install
OPENSSL_ROOT_DIR=/usr/local/opt/openssl cargo run