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

Setup environment

Install MS Code editor :

Deploy to target


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/*"

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…