Hello everyone,
I am a new user and I try the Run a Node App tutorial but without success.
I have clone the git repo.
The command : flyctl launch
not working for me. I get this error on Windows : “Error name argument or flag must be specified when not running interactively”
So I try manually with this command: flyctl launch --name jaribu-node -r cdg
My file fly.toml
# fly.toml file generated for jaribu-node on 2022-10-28T18:41:59+02:00
app = "jaribu-node"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
And Dockerfile :
FROM debian:bullseye as builder
ARG NODE_VERSION=16.14.2
RUN apt-get update; apt install -y curl
RUN curl https://get.volta.sh | bash
ENV VOLTA_HOME /root/.volta
ENV PATH /root/.volta/bin:$PATH
RUN volta install node@${NODE_VERSION}
#######################################################################
RUN mkdir /app
WORKDIR /app
ENV NODE_ENV production
COPY . .
RUN npm install
FROM debian:bullseye
LABEL fly_launch_runtime="nodejs"
COPY --from=builder /root/.volta /root/.volta
COPY --from=builder /app /app
WORKDIR /app
ENV NODE_ENV production
ENV PATH /root/.volta/bin:$PATH
CMD [ "npm", "run", "start" ]
(http://jaribu-node.fly.dev) remains unavailable. What’s wrong ?