8 months ago
I'm utilizing Pocketbase and cannot get the HTTP to "serve" after the project deploys. I have the port set to 8090 and still getting 502 error.
What am I missing?
49 Replies
8 months ago
Are you using a Dockerfile or Railpack
8 months ago
Is your repository public
8 months ago
Is this project in Go or JS/TS
8 months ago
What's the name of your project
8 months ago
FROM golang:1.22-alpine AS builder
WORKDIR /c2c-app
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY . .
RUN go build -o c2c-app .
FROM alpine:latest
WORKDIR /c2c-app
COPY --from=builder /c2c-app/c2c-app .
EXPOSE 8090
CMD ["./c2c-app"]Try making a file called Dockerfile and dropping this in it
I assume that the Railpack or Nixpack doesn't work with what I'm trying to do?
8 months ago
Seems as if it is not
8 months ago
I always just use Dockerfile because I ❤️ Dockerfile
8 months ago
okay this is better
8 months ago
FROM golang:1.22-alpine AS builder
WORKDIR /c2c-app
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY . .
RUN go build -o c2c-app .
FROM alpine:latest
WORKDIR /c2c-app
COPY --from=builder /c2c-app/c2c-app .
EXPOSE 8090
CMD ["./c2c-app", "serve", "--http=0.0.0.0:8090"]8 months ago
Edited ^^
Looks like Pocketbase is finally loading now. It's all kinds of pissed off.

8 months ago
Well. Does it work locally?
8 months ago
That's an application error
8 months ago
go run
8 months ago
:D
8 months ago
(Maybe)
8 months ago
Are you running it on terminal
8 months ago
I don't trust visual to not just pretend everything is fine
8 months ago
8 months ago
Yeah Visual is sorta dumb with these things
8 months ago
But this is obviously not a Railway issue anymore
8 months ago
The error is actually pretty verbose
8 months ago
Shows you exactly what you need to fix
8 months ago
Yippee!
I'm trying to develop in newer ways outside of PHP so it's quite the learning curve.
8 months ago
PHP is horrible
8 months ago
Good for you
8 months ago
I recommend Actix
8 months ago
(Never used Pocketbase)
This "software" is going to be utilizing data from digital measuring calipers and inserting them into the proper fields. Which will check that data to the tolerance, show green or red for pass/fail
8 months ago
Inchresting
Status changed to Solved uxuz • 9 months ago


