mirror of
https://github.com/Cian-H/simple_blender_server.git
synced 2025-12-22 21:41:56 +00:00
Switched port to 1212
This commit is contained in:
@@ -11,5 +11,5 @@ RUN apk add blender
|
|||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
COPY --from=builder /app/server .
|
COPY --from=builder /app/server .
|
||||||
COPY main.py.tmpl .
|
COPY main.py.tmpl .
|
||||||
EXPOSE 8080
|
EXPOSE 1212
|
||||||
CMD ["./server"]
|
CMD ["./server"]
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -18,7 +18,7 @@ func main() {
|
|||||||
|
|
||||||
port := os.Getenv("PORT")
|
port := os.Getenv("PORT")
|
||||||
if port == "" {
|
if port == "" {
|
||||||
port = "8080"
|
port = "1212"
|
||||||
}
|
}
|
||||||
log.Printf("Server starting on port %s", port)
|
log.Printf("Server starting on port %s", port)
|
||||||
if err := http.ListenAndServe(":"+port, nil); err != nil {
|
if err := http.ListenAndServe(":"+port, nil); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user