a mini social media app for small communities

found a V bug that gave me quite the headache. I thought it was caused by Docker, but nope, it was V

Changed files
+15 -13
+1 -1
Dockerfile
··· 35 # git clone --depth=1 https://tangled.org/emmeline.girlkisser.top/beep . 36 mkdir -p ~/.vmodules/emmathemartian/maple 37 git clone --depth=1 https://github.com/emmathemartian/maple ~/.vmodules/emmathemartian/maple 38 - v -prod . 39 EOF 40 41 STOPSIGNAL SIGINT
··· 35 # git clone --depth=1 https://tangled.org/emmeline.girlkisser.top/beep . 36 mkdir -p ~/.vmodules/emmathemartian/maple 37 git clone --depth=1 https://github.com/emmathemartian/maple ~/.vmodules/emmathemartian/maple 38 + v . # compiling with -prod causes ORM errors. 39 EOF 40 41 STOPSIGNAL SIGINT
+9 -11
compose.yml
··· 1 volumes: 2 beep-data: 3 4 - # networks: 5 - # common: {} 6 - 7 services: 8 beep-database: 9 image: postgres:17 10 container_name: beep-database 11 - # ports: 12 - # - 127.0.0.1:5432:5432 13 ports: 14 - - 5432:5432 15 environment: 16 - POSTGRES_DB=beep 17 - POSTGRES_USER=beep ··· 19 volumes: 20 - beep-data:/var/lib/postgresql/data 21 restart: on-failure:3 22 - # networks: 23 - # - common 24 25 beep: 26 build: . 27 container_name: beep 28 depends_on: 29 - - beep-database 30 ports: 31 - 8008:8008 32 volumes: ··· 34 source: ${PWD}/config.real.maple 35 target: /beep/config.real.maple 36 restart: on-failure:3 37 - # networks: 38 - # - common
··· 1 volumes: 2 beep-data: 3 4 services: 5 beep-database: 6 image: postgres:17 7 container_name: beep-database 8 ports: 9 + - 127.0.0.1:5432:5432 10 environment: 11 - POSTGRES_DB=beep 12 - POSTGRES_USER=beep ··· 14 volumes: 15 - beep-data:/var/lib/postgresql/data 16 restart: on-failure:3 17 + healthcheck: 18 + test: ["CMD", "pg_isready", "-d", "postgresql://localhost:5432", "-U", "beep"] 19 + interval: 30s 20 + timeout: 10s 21 + retries: 5 22 23 beep: 24 build: . 25 container_name: beep 26 depends_on: 27 + beep-database: 28 + condition: service_healthy 29 + restart: true 30 ports: 31 - 8008:8008 32 volumes: ··· 34 source: ${PWD}/config.real.maple 35 target: /beep/config.real.maple 36 restart: on-failure:3
+5 -1
readme
··· 13 hosting 14 ------- 15 16 $ git clone https://tangled.org/emmeline.girlkisser.top/beep 17 $ cd beep 18 $ cp config.maple config.real.maple ··· 35 Without Docker: 36 (assumes you already have a database somewhere) 37 $ v install EmmaTheMartian.Maple 38 - $ v -prod . 39 $ ./beep config.real.maple 40 41 If `v install ...` fails then you can install Maple
··· 13 hosting 14 ------- 15 16 + [WARNING] 17 + Do not compile with -prod. It causes a strange ORM error 18 + that results in invalid queries being sent to the database. 19 + 20 $ git clone https://tangled.org/emmeline.girlkisser.top/beep 21 $ cd beep 22 $ cp config.maple config.real.maple ··· 39 Without Docker: 40 (assumes you already have a database somewhere) 41 $ v install EmmaTheMartian.Maple 42 + $ v . 43 $ ./beep config.real.maple 44 45 If `v install ...` fails then you can install Maple