a year 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
a year ago
Are you using a Dockerfile or Railpack
a year ago
Is your repository public
a year ago
Is this project in Go or JS/TS
a year ago
What's the name of your project
a year 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?
a year ago
Seems as if it is not
a year ago
I always just use Dockerfile because I ❤️ Dockerfile
a year ago
okay this is better
a year 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"]a year ago
Edited ^^
a year ago
Well. Does it work locally?
a year ago
That's an application error
a year ago
go run
a year ago
:D
a year ago
(Maybe)
a year ago
Are you running it on terminal
a year ago
I don't trust visual to not just pretend everything is fine
a year ago
a year ago
Yeah Visual is sorta dumb with these things
a year ago
But this is obviously not a Railway issue anymore
a year ago
The error is actually pretty verbose
a year ago
Shows you exactly what you need to fix
a year ago
Yippee!
I'm trying to develop in newer ways outside of PHP so it's quite the learning curve.
a year ago
PHP is horrible
a year ago
Good for you
a year ago
I recommend Actix
a year 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
a year ago
Inchresting
Status changed to Solved uxuz • 11 months ago



