Coder Social home page Coder Social logo

sds3's Issues

Dificuldade com deploy Netlify

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

conection with heroku fail!! help.

Eu consegue conectar a database no Heroku mostrando o conteúdo das tabelas mais não hora de abrir o app no Heroku https://sds3-nelsoneo.herokuapp.com/

Não exibe nada, a consulta pelo postman tampouco traz nada e tampouco consigo exibir a tabela e gráficos pelo Netlify por causa do backend. Terminei o curso no localhost consigo exibir tudo certo como foi dado no curso, mais no Heroku não consigo.

Nota: Quando fiz git subtree push --prefix backend heroku main, deu success mais também deu uns warnings que não consigue desvendar. Qualquer ajuda fico agradecido pois gostaria exibir o tudo certinho no Netlify

INFO] BUILD SUCCESS
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 7.145 s
remote: [INFO] Finished at: 2021-11-07T21:11:24Z
remote: [INFO] ------------------------------------------------------------------------
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> web
remote:
remote: -----> Compressing...
remote: Done: 95.6M
remote: -----> Launching...
remote: Released v7
remote: https://sds3-nelsoneo.herokuapp.com/ deployed to Heroku
remote:
remote: !
remote: ! ## Warning - The same version of this code has already been built: c2a7be709d820b84bc10eba69ca647c01b9f5ca2
remote: !
remote: ! We have detected that you have triggered a build from source code with version c2a7be709d820b84bc10eba69ca647c01b9f5ca2
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote: !
remote: ! If you are developing on a branch and deploying via git you must run:
remote: !
remote: ! git push heroku :main
remote: !
remote: ! This article goes into details on the behavior:
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/sds3-nelsoneo.git

  • [new branch] c2a7be709d820b84bc10eba69ca647c01b9f5ca2 -> master

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.