One-click deploy
Sure is available as a one-click template on Hostim.dev. It provisions the Rails web server, the Sidekiq background worker, PostgreSQL, and Redis, and generatesSECRET_KEY_BASE automatically.
- Open the Sure template.
- Choose a resource plan.
- Click Deploy.
- Open the generated domain and create your first account.
Manual setup
To configure the app yourself, create an app from theghcr.io/we-promise/sure:stable image and set the following environment variables:
Run the web server and a Sidekiq worker from the same image, both sharing the same
SECRET_KEY_BASE. Run bin/rails db:prepare before the web server starts so migrations are applied. For example, use a start command like:
/rails/storage. Sure stores uploaded files (such as imported statements) there via Active Storage’s local disk service by default. Without a persistent volume, uploaded files are lost when the container is replaced, while the database still references them.