Created
March 16, 2023 00:05
-
-
Save congritta/22d580c2fc6a51322b0d73c1bc2c1d88 to your computer and use it in GitHub Desktop.
post-merge hook for React applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /opt/projects/cra-scaffold \ | |
&& yarn \ | |
&& yarn build \ | |
&& mkdir -p /var/www/cra-scaffold \ | |
&& rm -rf /var/www/cra-scaffold/* \ | |
&& mv build/* /var/www/cra-scaffold |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment