Skip to content

@fmoko fmoko released this Nov 27, 2019 · 90 commits to master since this release

Read the blog post for more details regarding this release!

Setup

We currently offer only GNU/Linux builds. If you're interested in supporting more targets, please contact us!

That being said, installation starts by downloading both the .tar.gz and the .minisign file. You can then verify the file signature if you want:

minisign -Vm tometo-0.1-linux-gnu.tar.gz -P "RWSOPopFko/YfOOJLGSLQ8wYjGsirt3cuPyTlMptym6K1e3ulPux1Lvx"

Unpack the .tar.gz file, and you will see it consists of a server binary, a client folder, a migrations folder and a config.toml file. You want to look through this TOML file and configure it to your liking. Make sure it's in the same directory as your server binary.

After that, you're ready to go! Assuming your PostgreSQL is running, you can install diesel_cli and run the database migrations:

cargo install diesel_cli --no-default-features --features "postgres"
diesel database setup --database-url="postgres://USER:PASSWORD@URL/DBNAME"

Then you can run the server! You might want to consider setting RUST_LOG to get more detailed logs:

RUST_LOG=info ./server

The files in client/ are simply static HTML, CSS and JS. You can put them on any web server of your choice, for example nginx. Just keep in mind that you need a URL rewriting solution since it's a single page app.

Assets 4
You can’t perform that action at this time.