Skip to content

[BOT-API] Build executable binary #43

Open
@4TT1L4

Description

@4TT1L4

Problem:

The Bot API Server is started using cabal run. This is not optimal, since cabal needs to look up some dependencies on every startup:

======[geniusyield-server]======
Startup checks....
SERVER_CONFIG is set and contains a valid YAML document.
====================================
Replace placeholders....
[OK] Done. Replaced placeholders.
+ cabal run geniusyield-server -- serve
====================================
Starting geniusyield-server...
Warning: Requested index-state 2023-06-06T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2023-06-05T23:38:20Z).
Resolving dependencies...

The process to resolve dependencies on startup takes way to long, adding 20-30 seconds to the startup time.

Solution:

  • Build an executable binary and start this instead of using cabal run to spin up the server.

Metadata

Metadata

Assignees

Labels

T-Shirt size - MediumHigh-Level effort estimation. Category "medium effort".TaskA feature request or general task involving code changes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions