sds3 icon indicating copy to clipboard operation
sds3 copied to clipboard

Dificuldade com deploy Netlify

Open BlackCode7 opened this issue 4 years ago • 2 comments

Boa tarde Galera! Por favor preciso de ajuda pra entender o porque este erro acontece! O netlify da um erro na construção do build! Vou tentar novamente!

Aqui este o link do meu código: https://github.com/BlackCode7/projeto_java_springboot_react/tree/master/projeto-sds3/frontend

Veja abaixo:

1:18:50 PM: Build ready to start 1:18:52 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302 1:18:52 PM: build-image tag: v3.7.6 1:18:52 PM: buildbot version: 3934dc3e65fec0466cd25051c676f6e727c64ab1 1:18:52 PM: Fetching cached dependencies 1:18:52 PM: Failed to fetch cache, continuing with build 1:18:52 PM: Starting to prepare the repo for build 1:18:53 PM: No cached dependencies found. Cloning fresh repo 1:18:53 PM: git clone https://github.com/BlackCode7/projeto_java_springboot_react 1:18:53 PM: Preparing Git Reference refs/heads/master 1:18:54 PM: Parsing package.json dependencies 1:18:55 PM: Starting build script 1:18:55 PM: Installing dependencies 1:18:55 PM: Python version set to 2.7 1:18:56 PM: v12.18.0 is already installed. 1:18:57 PM: Now using node v12.18.0 (npm v6.14.4) 1:18:57 PM: Started restoring cached build plugins 1:18:57 PM: Finished restoring cached build plugins 1:18:57 PM: Attempting ruby version 2.7.1, read from environment 1:18:58 PM: Using ruby version 2.7.1 1:18:58 PM: Using PHP version 5.6 1:18:58 PM: Started restoring cached go cache 1:18:58 PM: Finished restoring cached go cache 1:18:58 PM: go version go1.14.4 linux/amd64 1:18:58 PM: go version go1.14.4 linux/amd64 1:18:58 PM: Installing missing commands 1:18:58 PM: Verify run directory 1:19:00 PM: ​ 1:19:00 PM: ──────────────────────────────────────────────────────────────── 1:19:00 PM: Netlify Build
1:19:00 PM: ──────────────────────────────────────────────────────────────── 1:19:00 PM: ​ 1:19:00 PM: ❯ Version 1:19:00 PM: @netlify/build 11.17.0 1:19:00 PM: ​ 1:19:00 PM: ❯ Flags 1:19:00 PM: deployId: 60a145ea93a115dfe5db2ae2 1:19:00 PM: ​ 1:19:00 PM: ❯ Current directory 1:19:00 PM: /opt/build/repo 1:19:00 PM: ​ 1:19:00 PM: ❯ Config file 1:19:00 PM: No config file was defined: using default values. 1:19:00 PM: ​ 1:19:00 PM: ❯ Context 1:19:00 PM: production 1:19:00 PM: ​ 1:19:00 PM: ──────────────────────────────────────────────────────────────── 1:19:00 PM: 1. Build command from Netlify app
1:19:00 PM: ──────────────────────────────────────────────────────────────── 1:19:00 PM: ​ 1:19:00 PM: $ yarn build 1:19:00 PM: bash: yarn: command not found 1:19:00 PM: ​ 1:19:00 PM: ──────────────────────────────────────────────────────────────── 1:19:00 PM: "build.command" failed
1:19:00 PM: ──────────────────────────────────────────────────────────────── 1:19:00 PM: ​ 1:19:00 PM: Error message 1:19:00 PM: Command failed with exit code 127: yarn build 1:19:00 PM: ​ 1:19:00 PM: Error location 1:19:00 PM: In Build command from Netlify app: 1:19:00 PM: yarn build 1:19:00 PM: ​ 1:19:00 PM: Resolved config 1:19:00 PM: build: 1:19:00 PM: command: yarn build 1:19:00 PM: commandOrigin: ui 1:19:00 PM: publish: /opt/build/repo/build 1:19:01 PM: Caching artifacts 1:19:01 PM: Started saving build plugins 1:19:01 PM: Finished saving build plugins 1:19:01 PM: Started saving pip cache 1:19:01 PM: Finished saving pip cache 1:19:01 PM: Started saving emacs cask dependencies 1:19:01 PM: Finished saving emacs cask dependencies 1:19:01 PM: Started saving maven dependencies 1:19:01 PM: Finished saving maven dependencies 1:19:01 PM: Started saving boot dependencies 1:19:01 PM: Finished saving boot dependencies 1:19:01 PM: Started saving rust rustup cache 1:19:01 PM: Finished saving rust rustup cache 1:19:01 PM: Started saving go dependencies 1:19:01 PM: Finished saving go dependencies 1:19:04 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 1:19:04 PM: Creating deploy upload records 1:19:04 PM: Failing build: Failed to build site 1:19:04 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 1:19:04 PM: Finished processing build request in 12.123774036s

BlackCode7 avatar May 16 '21 16:05 BlackCode7

Boa Noite

Dá uma olhada se você configurou certinho lá no netlifly o build comand usando o yarn, pelo que parece ele não tá conseguindo dar build no seu projeto.

rmarinheiro avatar May 17 '21 23:05 rmarinheiro

Oi Rafael boa noite obrigado por responder a minha dúvida! Sim eu configurei de acordo com o que é mostrado no vídeo vídeo do professor Nélio, já tentei 10x, não sei se mudou alguma coisa! Em fim!

Obter o Outlook para Androidhttps://aka.ms/AAb9ysg


From: Rafael da Silva Marinheiro @.> Sent: Monday, May 17, 2021 8:21:07 PM To: devsuperior/sds3 @.> Cc: Anderson Martins @.>; Author @.> Subject: Re: [devsuperior/sds3] Dificuldade com deploy Netlify (#7)

Boa Noite

Dá uma olhada se você configurou certinho lá no netlifly o build comand usando o yarn.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/devsuperior/sds3/issues/7#issuecomment-842706007, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOK7YCPAIJ4VDH7XO4JGAL3TOGQGHANCNFSM4467FKFA.

BlackCode7 avatar May 18 '21 00:05 BlackCode7