From 81cc94ff85a3103f8cf87f45d65df76860409f97 Mon Sep 17 00:00:00 2001 From: Graeme Fulton Date: Tue, 23 Apr 2024 12:58:36 +0100 Subject: [PATCH] .. --- .github/workflows/deploy.yml | 7 ++++--- lib/constants.js | 12 ++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 13ee4316..801b1b8f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -76,9 +76,10 @@ jobs: ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts # delete folder in temp staging directory if it exists - ssh ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} "echo 'Checking and cleaning staging folder...' && if [ -d ${{ env.STAGING_DIR_PATH }}/* ]; then rm -rf ${{ env.STAGING_DIR_PATH }}/*; fi" - # copy .next folder to temp staging directory - scp -r ${{ env.STAGING_DIR_PATH }}/. ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }}:${{ env.STAGING_DIR_PATH }} + ssh ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} "echo 'Checking and cleaning staging folder...' && rm -rf ${{ env.STAGING_DIR_PATH }};" + # copy folder to temp staging directory + scp -r "${{ env.STAGING_DIR_PATH }}" "${{ env.SERVER_USER }}@${{ env.SERVER_HOST }}:${{ env.STAGING_DIR_PATH }}" + #scp -r ${{ env.STAGING_DIR_PATH }}/. ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }}:${{ env.STAGING_DIR_PATH }} ssh ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} " set -e diff --git a/lib/constants.js b/lib/constants.js index ad0b0aec..342b7d14 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -11,12 +11,12 @@ export const HOME_OG_IMAGE_URL = export const NAV_OFFSET = 'pt-[84px]' export const SIDEBAR_STICKY_OFFSET = 'pt-24' -export const TOTAL_STATIC_POSTS = 5000 -export const TOTAL_STATIC_NEWSLETTERS = 1000 -export const TOTAL_STATIC_NEWS = 50 -// export const TOTAL_STATIC_POSTS = 20 -// export const TOTAL_STATIC_NEWSLETTERS = 20 -// export const TOTAL_STATIC_NEWS = 20 +// export const TOTAL_STATIC_POSTS = 5000 +// export const TOTAL_STATIC_NEWSLETTERS = 1000 +// export const TOTAL_STATIC_NEWS = 50 +export const TOTAL_STATIC_POSTS = 20 +export const TOTAL_STATIC_NEWSLETTERS = 20 +export const TOTAL_STATIC_NEWS = 20 export const jobTypes = [ {