Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It's rather self-explanatory

Note: Usually updating content does not require Apache  to restart – You can verify if new content is hosted by refreshing your browser, particularly by Command  + Shift  + R  to refresh to empty the current page's cache and reload.

Code Block
# File at Dashboard frontend machine's /home/ec2-user/deploy-react/run-deploy.sh

echo "============================================================================================"
echo "=== This is a script to copy React 'build/' folder contents to be hosted by Apache httpd ==="
echo "============================================================================================"

echo "** Please run me with sudo **"

echo "Have you copied the 'build/' folder into this directory? (choose answer number below)"
select yn in "Y" "N"; do
	case $yn in
		Y) rm -r /var/www/html/*; cp -r ./build/* /var/www/html/; echo "== Done =="; break;;
		N) exit;;
	esac
done

...