Open
Description
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.