Page tree
Skip to end of metadata
Go to start of metadata


Setup environment

https://codeburst.io/installing-reactjs-and-creating-your-first-application-d437706498ed


Install MS Code editor : https://code.visualstudio.com/docs/setup/linux


Deploy to target

https://codeburst.io/how-to-setup-nginx-for-react-a504f38f95ed

...

Deploying your actual react app to this folder

Assuming you have the built files in a folder called public, then you can add this to your packge.json scripts :

"scripts": {
...
"deploy:prod": "rsync -avzhe ssh --progress ./public/* root@krim.com:/root/krim.com"
},

And then invoke this by calling :

npm run build

npm run deploy:prod

This should sync all your files with the remote directory and your app is now deployed.

Welcome to the world of dev ops, frontend developer.

  • No labels
Write a comment…