Skip to content

Commit

Permalink
🪶chore: update deploy-prod.yml (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalloSouf authored Jul 3, 2024
1 parent 672fe52 commit c338a4d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,24 @@ jobs:
password: ${{ secrets.SERVER_PASSWORD }}
script: |
# Change directory to project directory
cd mcdata-api
cd mcevert/store-service
# Load environment variables
echo "
APP_NAME=${{ vars.APP_NAME }}
APP_ENV=${{ vars.APP_ENV }}
APP_PORT=${{ vars.APP_PORT }}
APP_URL=${{ vars.APP_URL }}
" > .env
# Pull newest code
git pull
# Install newest dependencies
yarn install --frozen-lockfile
# Build production code
yarn build
# Restart process manager
pm2 restart "store-service"

0 comments on commit c338a4d

Please sign in to comment.