I am making an AUR package for Twenty but I'm facing problems

I can't even get the app to work on my system I need someone who's actively maintaining the github repo to explain to me how do things actually work so I can make the AUR package available to anyone, I got really confused I've made some decent progress so far but I am currently stuck in npx nx start , the UI starts well at localhost:3001 but I get a small error card in the bottom right saying Error during useFindManyRecords for "views", QueryFailedError systemctl status postgresql.service says postgres is Active tho
No description
9 Replies
Silver πŸ‡΅πŸ‡ΈπŸ”»
all dependencies are installed (pg-graphql, yarn) I did the cp ./packages/twenty-postgres/init.sql /tmp/init.sql and sudo -u postgres psql -f /tmp/init.sql I use node 18 I did the
cp ./packages/twenty-front/.env.example ./packages/twenty-front/.env
cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env
cp ./packages/twenty-front/.env.example ./packages/twenty-front/.env
cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env
but as I said when executing npx nx database:reset twenty-server the server runs but lags with no data npx nx database:reset twenty-servernpx nx database:reset twenty-server
Silver πŸ‡΅πŸ‡ΈπŸ”»
GitHub
Can't make postgres-on-linux on arch linux Β· Issue #5679 Β· twenty...
Bug Description after running make postgres-on-linux I get these errors (highlighted in yellow) ./linux/provision-postgres-linux.sh: line 52: dpkg: command not found sh: line 1: lsb_release: comman...
charles
charlesβ€’6mo ago
that's a good point, this script meant to be used with dpkg and not pacman, we should either have two different script or enhance this one to support other package managers The difficulty is that we use postgres15 + custom pg_graphql postgres extension + some existing wrappers we need this custom postgres extension to be compiled (from rust) in the right arch supported by the system That's why we have these scripts / pre-built binaries in the linux/macos folders here: https://github.com/twentyhq/twenty/tree/main/packages/twenty-postgres The self-hosting approach we are following is to run Twenty in docker containers which get rids of having to maintain a build system for every platform https://docs.twenty.com/start/self-hosting/docker-compose Building an AUR package is possible but you'll need to maintain your own scripts and the core team won't have the bandwidth to help you maintain that Regarding the vision, we are planning to get rid of pg_graphql at some point within the next ~6 months but we will still rely on some postgres extension such as supabase/wrappers
Silver πŸ‡΅πŸ‡ΈπŸ”»
I just realized there were 2 scripts in the linux folder provision-postgres-linux and build-postgres-linux.sh I'm not sure which one should start first thobuild-postgres-linux.sh alos I'm stuck on the
echo "Applying patches to pg_graphql files..."
for patch_file in "/twenty/patches/pg_graphql/"*.patch; do
echo "Applying patch: $patch_file"
patch -p1 < "$patch_file"
done
echo "Applying patches to pg_graphql files..."
for patch_file in "/twenty/patches/pg_graphql/"*.patch; do
echo "Applying patch: $patch_file"
patch -p1 < "$patch_file"
done
I have no idea where /twenty/patches/pg_graphql is Man I might just use Docker after all or pen and paper
charles
charlesβ€’6mo ago
why do you want to create an AUR package?
Silver πŸ‡΅πŸ‡ΈπŸ”»
docker worked fine but it was CPU heavy on my machine so I thought I should run the app natively and kept trying for a few weeks but kept failing so I thought I should note the shell commands I use to install so I thought I might as well make a PKGBUILD file so I thought I might as well publish it on the AUR but I ended up i an endless loop of XY problems I gave up, m going back to Docker
charles
charlesβ€’6mo ago
the database is the part hard to put on your host so maybe use docker only for your database with a port forward and then run the server on your host
Silver πŸ‡΅πŸ‡ΈπŸ”»
aaah man don't get me started again
charles
charlesβ€’6mo ago
πŸ˜„
Want results from more Discord servers?
Add your server