Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

Commit 18caf41

Browse files
committed
RTS -N
1 parent a134c29 commit 18caf41

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

image/entrypoint.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
#!/bin/bash
22

3-
43
set -e
54

65
echo "MIGRATING $DATABASE_URL"
76
/root/.cargo/bin/sqlx migrate run
87

98
echo "RUNNING"
109

11-
# use THREADS=1 if it doesn't exist
12-
# docker run -e THREADS=24 --cpuset-cpus="0-23" --cpuset-mems="0" level2
13-
: "${THREADS:=1}"
14-
15-
# exec ./level2 +RTS -N"${THREADS}" -s -RTS
16-
exec ./level2 +RTS -N"${THREADS}" -RTS
10+
# Run with all available CPUs
11+
# See CPU_WORKERS to limit number allowed for CPU-intensive tasks
12+
exec ./level2 +RTS -N -RTS

src/App/Page/Dashboard.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE QuasiQuotes #-}
21
{-# LANGUAGE UndecidableInstances #-}
32

43
module App.Page.Dashboard where
@@ -39,8 +38,8 @@ page = do
3938
col ~ pad 20 . gap 20 $ do
4039
col $ do
4140
el ~ fontSize 24 . bold $ "Level 2"
42-
el $ text $ appVersion.value
43-
link gitVersionURI ~ Style.link $ text $ gitVersion.value
41+
el $ text appVersion.value
42+
link gitVersionURI ~ Style.link $ text gitVersion.value
4443

4544
col $ do
4645
el ~ bold . fontSize 18 $ "Admin"

0 commit comments

Comments
 (0)