fTxUser
fTxUser
Explore posts from servers
RRailway
Created by fTxUser on 8/15/2024 in #✋|help
Payload-CMS and Railway
hey there, I've created a new postgres db on railway, installed payload-cms locally and used the DATABASE_PUBLIC_URI string to connect from the blank install to my db. which worked yay but I've now for the first time tried to use the Railway CLI and tried to get that local empty Payload-CMS project into the same Project/enviorment that my postgres db is on Railway. created an empty service online first, an then tried railway link -> picked the project - > picked the empty service and then railway up. and got "Build failed: : Failed to build an image. If this error persists, please contact Railway support." wondering what I'm doing wrong here. Log says: Dockerfile:19 ------------------- 17 | WORKDIR /home/node/app 18 | COPY package*.json ./ 19 | >>> COPY yarn.lock ./ 20 | 21 | RUN yarn install --production ------------------- ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/yarn.lock": not found xed out the number since I#ve no clue what I should share or not hehe
18 replies
KPCKevin Powell - Community
Created by fTxUser on 8/8/2024 in #back-end
CMS that only interacts with a exisiting Database?
So most Headless CMS come or connect to a database on the backend and the Headless CMS than creates API endpoints that you can than access from your Frontend to get the content into your site. Since Pocketbase, Supabase, Firebase offer such great integrated backend solutions with Auth, DB, API endpoints - I am now wondering if there is a Headless CMS that only acts as a frontend for updating such a BaaS system. Since Pocketbase offers an API for my site to get content, I only really need the CMS to do CRUD operation on tables via the API that Pocketbase offers and it doesn't need to create a API for the frontend, since Pocketbase/Supabase already offer that. At the same time I don't want to have to build a custom CRUD Frontend for my BaaS Backend. Maybe I have a knot in my brain, but it doesn't seem like any headless CMS is really doing this or am I just not understanding something here?
4 replies
KPCKevin Powell - Community
Created by fTxUser on 7/31/2024 in #front-end
Best practice to style standard HTML elements with TailwindCSS?
I am exploring Tailwind atm while learning Astro. TailwindCSS is removing all spacings, sizings and formatting of HTML elements by default, so you can use your own system. What is the best practice to style repeating elements like <p> or <h1> elements when using Tailwind? should I use @apply in my stylesheet? p { @apply p-2; } just use standard css? p { padding: 1rem; } or is there a better way to handle this? Thanks!
1 replies
KPCKevin Powell - Community
Created by fTxUser on 7/26/2023 in #os-and-tools
Using AI to process, classify and filter text?
First off: I am a noob, only work with HTML and CSS, but have a little bit of understanding of how programming and the web works. So I am interestig on how one would process html / text nowadays to classifiy it by certain standards. Let's say for example I would want to filter a number out of a block of text, but if there are multiple numbers, I want to prefer the number that has a certain word in it's radius and so on. I know that this can be done with regex (regular expressions), but wonder how hard it is to build such a classification service using ML/AI services available today. Anybody have some poiners on where to start looking / learning or can maybe sketch out the process roughly?
7 replies