digitalocean / sample-react Goto Github PK
View Code? Open in Web Editor NEW⛵ App Platform sample React application.
Home Page: https://cloud.digitalocean.com/apps
⛵ App Platform sample React application.
Home Page: https://cloud.digitalocean.com/apps
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:
src/App.js
(elenalape@349801f)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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.