create-react-app
.netlify-cli
globally.sudo
:cd
to the directory for your React app that you want to host. (Let's assume it's called cyf-hotel)build
the app:build
directory within your current directory. This contains a prepared version of your app, ready to be hosted. (There are many ways to host it.)Create & Configure a new site
cyf-ahmet-hotel
CYF
if it is an option. Choose your own user name as a team.build
.deploy
command, by adding --dir ./build
. This way, it won't ask you to type it in.netlify deploy --prod --dir ./build
package.json
to add "deploy": "npm run build && netlify deploy --prod --dir ./build"
to the scripts
object. Then you can just run npm run deploy
and the build and deploy step will both be done for you. Be careful when you edit that file, and copy and paste exactly from here!