-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
@davesnx were you able to deploy to fly.io successfully? Do I need to do anything other than running fly launch
in the project dir?
Flyctl version:
$ flyctl version
flyctl v0.3.33 darwin/arm64 Commit: 75a3fe121bbbf7509e707738682a1fd03c033e01 BuildDate: 2024-11-05T02:02:53Z
Error output:
$ fly launch
An existing fly.toml file was found for app fullstack-reason-react-demo
? Would you like to copy its configuration to the new app? Yes
Scanning source code
Detected a Dockerfile app
Creating app in /Users/bjornnaggjussen/personal/fullstack-reason-react-demo
We're about to launch your app on Fly.io. Here's what you're getting:
Organization: Ben Schinn (fly launch defaults to the personal org)
Name: fullstack-reason-react-demo-frosty-water-5063 (generated)
Region: Denver, Colorado (US) (this is the fastest region for you)
App Machines: shared-cpu-1x, 1GB RAM (most apps need about 1GB of RAM)
Postgres: <none> (not requested)
Redis: <none> (not requested)
Tigris: <none> (not requested)
? Do you want to tweak these settings before proceeding? No
Created app 'fullstack-reason-react-demo-frosty-water-5063' in organization 'personal'
Admin URL: https://fly.io/apps/fullstack-reason-react-demo-frosty-water-5063
Hostname: fullstack-reason-react-demo-frosty-water-5063.fly.dev
Run `fly tokens create deploy -x 999999h` to create a token and set it as the FLY_API_TOKEN secret in your GitHub repository settings
See https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions
Wrote config file fly.toml
Validating /Users/bjornnaggjussen/personal/fullstack-reason-react-demo/fly.toml
✓ Configuration is valid
==> Building image
==> Building image with Depot
--> build: ()
[+] Building 2.5s (35/38)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 1.74kB 0.1s
=> [internal] load metadata for docker.io/library/alpine:3.12 0.5s
=> [internal] load metadata for docker.io/library/node:16.3-alpine3.12 0.5s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 94B 0.1s
=> [build 1/5] FROM docker.io/library/node:16.3-alpine3.12@sha256:a9a383643d8f4758886fadd7787d92adeddc58434c6a0349fa0836200e70efcd 0.0s
=> => resolve docker.io/library/node:16.3-alpine3.12@sha256:a9a383643d8f4758886fadd7787d92adeddc58434c6a0349fa0836200e70efcd 0.0s
=> [run 1/5] FROM docker.io/library/alpine:3.12@sha256:c75ac27b49326926b803b9ed43bf088bc220d22556de1bc5f72d742c91398f69 0.0s
=> => resolve docker.io/library/alpine:3.12@sha256:c75ac27b49326926b803b9ed43bf088bc220d22556de1bc5f72d742c91398f69 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 16.84kB 0.1s
=> CACHED [run 2/5] RUN apk update && apk add --update libev gmp git 0.0s
=> CACHED [run 3/5] RUN chmod -R 755 /var 0.0s
=> CACHED [build 2/5] RUN set NODE_OPTIONS=--max-old-space-size=30720 0.0s
=> CACHED [build 3/5] RUN mkdir /esy 0.0s
=> CACHED [build 4/5] WORKDIR /esy 0.0s
=> CACHED [build 5/5] RUN npm install -g [email protected] 0.0s
=> CACHED [esy 2/24] COPY --from=build /esy /esy 0.0s
=> CACHED [esy 3/24] RUN apk add --no-cache ca-certificates wget bash curl perl-utils git patch gcc g++ musl-dev make m4 coreutils tar xz linux-headers 0.0s
=> CACHED [esy 4/24] RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub 0.0s
=> CACHED [esy 5/24] RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk 0.0s
=> CACHED [esy 6/24] RUN apk add --no-cache glibc-2.28-r0.apk 0.0s
=> CACHED [esy 7/24] WORKDIR /app 0.0s
=> CACHED [esy 8/24] COPY package*.json ./ 0.0s
=> CACHED [esy 9/24] RUN npm ci --only=production 0.0s
=> CACHED [esy 10/24] ADD esy.json esy.json 0.0s
=> CACHED [esy 11/24] ADD esy.lock/ esy.lock/ 0.0sch-export-20240904-190325.txt
=> CACHED [esy 12/24] RUN esy --version 0.0sch-export-20240910-224822.txt
=> CACHED [esy 13/24] RUN esy solve 0.0sch-export-20240910-230820.txt
=> CACHED [esy 14/24] RUN esy fetch 0.0sch-export-20240910-230953.txt
=> CACHED [esy 15/24] RUN esy build-dependencies 0.0sch-export-20240920-191346.txt
=> CACHED [esy 16/24] COPY client/ client/ 0.0sch-export-20241001-220943.txt
=> CACHED [esy 17/24] COPY shared/ shared/ 0.0sch-export-20241004-214647.txt
=> CACHED [esy 18/24] COPY server/ server/ 0.0s
=> CACHED [esy 19/24] COPY dune dune 0.0s
=> CACHED [esy 20/24] COPY dune-project dune-project 0.0s
=> CACHED [esy 21/24] COPY webpack.config.js webpack.config.js 0.0s
=> CACHED [esy 22/24] RUN esy build 0.0s
=> ERROR [esy 23/24] RUN node_modules/.bin/webpack 1.7s
------
> [esy 23/24] RUN node_modules/.bin/webpack: ch-export-20240910-212241.txt
1.677 asset app.js 4.74 MiB [emitted] (name: app) ch-export-20240910-225148.txt
1.677 asset header.js 99 bytes [emitted] (name: header)
1.677 runtime modules 1010 bytes 5 modules
1.677 orphan modules 236 bytes [orphan] 1 module
1.677 modules by path ./_build/default/client/app/ 611 KiB
1.677 modules by path ./_build/default/client/app/node_modules/ 593 KiB 40 modules
1.677 modules by path ./_build/default/client/app/shared/js/*.js 16.3 KiB
1.677 ./_build/default/client/app/shared/js/App.js 6.99 KiB [built] [code generated]
1.677 + 5 modules
1.677 ./_build/default/client/app/client/app.js 1.51 KiB [built] [code generated]
1.677 modules by path ./node_modules/ 1.19 MiB
1.677 modules by path ./node_modules/@emotion/ 42.9 KiB 10 modules
1.677 modules by path ./node_modules/stylis/src/*.js 23.2 KiB 7 modules
1.677 modules by path ./node_modules/react/ 128 KiB 4 modules
1.677 modules by path ./node_modules/react-dom/ 1010 KiB 3 modules
1.677 modules by path ./node_modules/scheduler/ 17.3 KiB 2 modules
1.677
1.677 ERROR in header
1.677 Module not found: Error: Can't resolve '/app/_build/default/client/header/client/header.js' in '/app'
1.677 resolve '/app/_build/default/client/header/client/header.js' in '/app'
1.677 using description file: /app/package.json (relative path: .)
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 root path /app
1.677 using description file: /app/package.json (relative path: ./app/_build/default/client/header/client/header.js)
1.677 no extension
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/app/_build/default/client/header/client/header.js doesn't exist
1.677 .js
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/app/_build/default/client/header/client/header.js.js doesn't exist
1.677 .json
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/app/_build/default/client/header/client/header.js.json doesn't exist
1.677 .wasm
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/app/_build/default/client/header/client/header.js.wasm doesn't exist
1.677 as directory
1.677 /app/app/_build/default/client/header/client/header.js doesn't exist
1.677 using description file: /app/package.json (relative path: ./_build/default/client/header/client/header.js)
1.677 no extension
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/_build/default/client/header/client/header.js doesn't exist
1.677 .js
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/_build/default/client/header/client/header.js.js doesn't exist
1.677 .json
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/_build/default/client/header/client/header.js.json doesn't exist
1.677 .wasm
1.677 Field 'browser' doesn't contain a valid alias configuration
1.677 /app/_build/default/client/header/client/header.js.wasm doesn't exist
1.677 as directory
1.677 /app/_build/default/client/header/client/header.js doesn't exist
1.677
1.677 webpack 5.75.0 compiled with 1 error in 1204 ms
------
Error: failed to fetch an image or build from source: error building: failed to solve: process "/bin/sh -c node_modules/.bin/webpack" did not complete successfully: exit code: 1
Metadata
Metadata
Assignees
Labels
No labels