Skip to content

Instantly share code, notes, and snippets.

@congritta
Created March 16, 2023 00:05
Show Gist options
  • Save congritta/22d580c2fc6a51322b0d73c1bc2c1d88 to your computer and use it in GitHub Desktop.
Save congritta/22d580c2fc6a51322b0d73c1bc2c1d88 to your computer and use it in GitHub Desktop.
post-merge hook for React applications
#!/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