diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-03-26 21:03:34 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-03-26 21:03:34 -0400 |
| commit | 342a31c06cfa40be5ac50ac028578f25ce7bf0fd (patch) | |
| tree | cdbcd28cb24b07879bd81a7706e2b607d2f5fe43 /deploy_static | |
| parent | f5f23e2a95325f9748edcc5da4a3f21c9a18af92 (diff) | |
automate CSS/JS cache busting
Diffstat (limited to 'deploy_static')
| -rwxr-xr-x | deploy_static | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy_static b/deploy_static index 8daeb249..3de1ed42 100755 --- a/deploy_static +++ b/deploy_static @@ -25,5 +25,9 @@ ssh $remote sync -f $target ssh $remote ln -snf $target /var/www/html ssh $remote sync . +rsync -rpcv --chmod=D755,F644 --delete nginx.conf.tmp $remote:/etc/nginx/nginx.conf +ssh $remote sync -f /etc/nginx/nginx.conf +ssh $remote systemctl reload nginx + echo echo active is now $target |
