Process of deploy the modified react app on netlify .
/* 1. Green --> you have to write .*/
PS C:\Users\adaka\OneDrive\Desktop\react-app> cd
PS C:\Users\adaka\OneDrive\Desktop\react-app> cd to-do-app
PS C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app> npm run build
>>
> my-apps@0.1.0 build
> react-scripts build
Creating an optimized production build...
One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.
babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.
Compiled successfully.
File sizes after gzip:
46.62 kB build\static\js\main.04959d5b.js
1.78 kB build\static\js\787.14d66ee3.chunk.js
541 B build\static\css\main.073c9b0a.css
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
https://cra.link/deployment
PS C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app> cd C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build
>>
PS C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
>>
PS C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build> netlify deploy
Please provide a publish directory (e.g. "public" or "dist" or "."):
? Publish directory C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build
Deploy path: C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build
Deploying to draft URL...
✔ Finished hashing
✔ CDN requesting 4 files
✔ Finished uploading 4 assets
✔ Deploy is live!
Build logs: https://app.netlify.com/sites/to-do-app-using-react-by-ani/deploys/6505fe1e08aa414564900baf
Function logs: https://app.netlify.com/sites/to-do-app-using-react-by-ani/functions?scope=deploy:6505fe1e08aa414564900baf
Website draft URL: https://6505fe1e08aa414564900baf--to-do-app-using-react-by-ani.netlify.app
If everything looks good on your draft URL, deploy it to your main site URL with the --prod flag.
netlify deploy --prod
PS C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build> netlify deploy --prod
>>
Please provide a publish directory (e.g. "public" or "dist" or "."):
? Publish directory //just enter here
C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build
Deploy path: C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build
Deploying to main site URL...
✔ Finished hashing
✔ CDN requesting 0 files
✔ Finished uploading 0 assets
✔ Deploy is live!
Build logs: https://app.netlify.com/sites/to-do-app-using-react-by-ani/deploys/6505ff3c5ed2ae452828ccf5
Function logs: https://app.netlify.com/sites/to-do-app-using-react-by-ani/functions
Unique deploy URL: https://6505ff3c5ed2ae452828ccf5--to-do-app-using-react-by-ani.netlify.app
Website URL: https://to-do-app-using-react-by-ani.netlify.app
PS C:\Users\adaka\OneDrive\Desktop\react-app\to-do-app\build>
Comments
Post a Comment