Amorphouse / success-domino

0 stars 0 forks source link

Netlifyでの公開と動作確認 #8

Open Amorphouse opened 2 weeks ago

Amorphouse commented 2 weeks ago

ゴール: アプリケーションをNetlifyで公開し、正しく動作することを確認する。

作業:

以上のIssueを作成し、各作業を進めていくことで、アプリ開発のセットアップから公開までのプロセスを効率的に管理できます。

Amorphouse commented 2 weeks ago

コミット:feat: :sparkles: ユーザーがAPI経由でチャレンジを生成し、画面に表示する機能を実装 · Amorphouse/success-domino@e0ac490

上記コミットをデプロイ時にvue-cli-service: not foundのエラーが出てデプロイ失敗

11:20:59 PM: ​
11:20:59 PM: $ npm run build --prefix frontend
11:20:59 PM: > frontend@0.1.0 build
11:20:59 PM: > vue-cli-service build
11:20:59 PM: sh: 1: vue-cli-service: not found
11:20:59 PM: ​
11:20:59 PM: "build.command" failed                                        
deploy error log 11:20:45 PM: build-image version: 006dca901dab83234b4881f914ac1a189ff41daa (focal) 11:20:45 PM: buildbot version: 4efa92caac694900238b5720da09be67747c29dc 11:20:45 PM: Building without cache 11:20:45 PM: Starting to prepare the repo for build 11:20:46 PM: No cached dependencies found. Cloning fresh repo 11:20:46 PM: git clone --filter=blob:none https://github.com/Amorphouse/success-domino 11:20:46 PM: Preparing Git Reference refs/heads/main 11:20:48 PM: Starting to install dependencies 11:20:48 PM: Python version set to 3.8 11:20:48 PM: Attempting Ruby version 2.7.2, read from environment 11:20:49 PM: Using Ruby version 2.7.2 11:20:49 PM: Started restoring cached go cache 11:20:49 PM: Finished restoring cached go cache 11:20:51 PM: go version go1.19.13 linux/amd64 11:20:52 PM: Using PHP version 8.0 11:20:53 PM: Downloading and installing node v20.15.0... 11:20:53 PM: Downloading https://nodejs.org/dist/v20.15.0/node-v20.15.0-linux-x64.tar.xz... 11:20:54 PM: Computing checksum with sha256sum 11:20:54 PM: Checksums matched! 11:20:56 PM: Now using node v20.15.0 (npm v10.7.0) 11:20:56 PM: Enabling Node.js Corepack 11:20:56 PM: Started restoring cached build plugins 11:20:56 PM: Finished restoring cached build plugins 11:20:56 PM: Successfully installed dependencies 11:20:57 PM: Starting build script 11:20:58 PM: Detected 0 framework(s) 11:20:58 PM: Section completed: initializing 11:20:59 PM: ​ 11:20:59 PM: Netlify Build 11:20:59 PM: ──────────────────────────────────────────────────────────────── 11:20:59 PM: ​ 11:20:59 PM: ❯ Version 11:20:59 PM: @netlify/build 29.48.2 11:20:59 PM: ​ 11:20:59 PM: ❯ Flags 11:20:59 PM: baseRelDir: true 11:20:59 PM: buildId: 66782f30a58cfaba14013778 11:20:59 PM: deployId: 66782f31a58cfaba1401377a 11:20:59 PM: ​ 11:21:00 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2) 11:20:59 PM: ❯ Current directory 11:20:59 PM: /opt/build/repo 11:20:59 PM: ​ 11:20:59 PM: ❯ Config file 11:20:59 PM: /opt/build/repo/netlify.toml 11:20:59 PM: ​ 11:20:59 PM: ❯ Context 11:20:59 PM: production 11:20:59 PM: ​ 11:20:59 PM: Build command from Netlify app 11:20:59 PM: ──────────────────────────────────────────────────────────────── 11:20:59 PM: ​ 11:20:59 PM: $ npm run build --prefix frontend 11:20:59 PM: > frontend@0.1.0 build 11:20:59 PM: > vue-cli-service build 11:20:59 PM: sh: 1: vue-cli-service: not found 11:20:59 PM: ​ 11:20:59 PM: "build.command" failed 11:20:59 PM: ──────────────────────────────────────────────────────────────── 11:20:59 PM: ​ 11:20:59 PM: Error message 11:20:59 PM: Command failed with exit code 127: npm run build --prefix frontend (https://ntl.fyi/exit-code-127) 11:20:59 PM: ​ 11:20:59 PM: Error location 11:20:59 PM: In Build command from Netlify app: 11:20:59 PM: npm run build --prefix frontend 11:20:59 PM: ​ 11:20:59 PM: Resolved config 11:20:59 PM: build: 11:20:59 PM: command: npm run build --prefix frontend 11:20:59 PM: commandOrigin: ui 11:20:59 PM: environment: 11:20:59 PM: - GOOGLE_AI_API_KEY 11:20:59 PM: - OPENAI_API_KEY 11:20:59 PM: publish: /opt/build/repo/frontend/dist 11:20:59 PM: publishOrigin: ui 11:20:59 PM: functionsDirectory: /opt/build/repo/backend/functions 11:20:59 PM: headers: 11:21:00 PM: - for: /* values: Access-Control-Allow-Origin: '*' headersOrigin: config 11:21:00 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 11:21:00 PM: Failing build: Failed to build site 11:21:00 PM: Finished processing build request in 14.638s