Giter Site home page Giter Site logo

sample-react's Issues

Changes suggested in the README do not trigger a build

I cloned the repo and deployed the app as is, which worked fine. However, then I tried making two changes to the app, deploying after each:

  1. Edited src/App.js (elenalape@349801f)
  2. Edited public/index.html, as is suggested in this repo's README (elenalape@1eebdbf)

Neither of those seemed to have triggered a re-build, so it just deploys the app with no changes, i.e. in the Dashboard under Deployments it says

Build logs

The build was skipped for this deployment.

Upon consulting the docs about this, I can't find a simple solution.

Wrong output_dir with create-react-app

By default CRA uses build folder for production build. Buildpack detection works wrong and set public folder as output_dir. But it should be dist. This static site used as a component for web service.

How can Buildpack detect correctly output_dir? Maybe there are some build commands? Thanks.

visual-builder-ui | 11:28:03 => Static site output directory is not explicitly set, attempting to look for static files
visual-builder-ui | 11:28:03      Checking /workspace/_static
visual-builder-ui | 11:28:03      Checking /workspace/dist
visual-builder-ui | 11:28:03      Checking /workspace/public
visual-builder-ui | 11:28:03 => Using document root /workspace/public

I tried to add react-app-rewired build && mv build _static but still no luck.

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.