Skip to content

Commit

Permalink
Merge pull request #9 from shamspias/dev
Browse files Browse the repository at this point in the history
fix deployment env
  • Loading branch information
shamspias authored Dec 25, 2023
2 parents c7e8fd6 + 130dcec commit eb7703a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
password: ${{ secrets.EC2_PASSWORD }}
key: ${{ secrets.EC2_SSH_KEY }}
source: "."
target: "/home/ubuntu/langchain-gemini-api-service"

Expand All @@ -27,7 +27,7 @@ jobs:
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
password: ${{ secrets.EC2_PASSWORD }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
echo "Running commands on remote server"
Expand All @@ -43,11 +43,10 @@ jobs:
pip install -r requirements.txt
# Add environment variables to the .env file
echo "GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}" >> .env
echo "REDIS_URL=${{ secrets.REDIS_URL }}" >> .env
echo "MY_API_KEY=${{ secrets.MY_API_KEY }}" >> .env
echo "SYSTEM_INSTRUCTION=${{ secrets.SYSTEM_INSTRUCTION }}" >> .env
echo "GEMINI_API_KEY=\"$GEMINI_API_KEY\"" >> .env
echo "REDIS_URL=\"$REDIS_URL\"" >> .env
echo "MY_API_KEY=\"$MY_API_KEY\"" >> .env
echo "SYSTEM_INSTRUCTION=\"$SYSTEM_INSTRUCTION\"" >> .env
# Ensure the NGINX config directories are clean
Expand Down

0 comments on commit eb7703a

Please sign in to comment.