Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Apr 23, 2024
1 parent fa724ba commit 81cc94f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down

0 comments on commit 81cc94f

Please sign in to comment.