Skip to content

Commit

Permalink
fix: .env variables management
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherfrige committed Mar 15, 2024
1 parent dc5163a commit 091afa1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
key: ${{ secrets.VPS_SSHKEY }}
script: |
cd /var/www/manwha-reader/.docker
echo 'API_URL=${{ secrets.API_URL }}'
truncate -s 0 .env
printf 'API_URL=${{ secrets.API_URL }}' >> .env
cd /var/www/manwha-reader
docker compose -f ./.docker/compose.yaml up -d
4 changes: 3 additions & 1 deletion .github/workflows/deploy-docker-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
key: ${{ secrets.VPS_SSHKEY }}
script: |
cd /var/www/manwha-reader/.docker
echo 'API_URL=${{ secrets.API_URL }}'
truncate -s 0 .env
printf 'API_URL=${{ secrets.API_URL }}' >> .env
cd /var/www/manwha-reader
docker compose -f ./.docker/compose.yaml up -d
4 changes: 3 additions & 1 deletion .github/workflows/deploy-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
key: ${{ secrets.VPS_SSHKEY }}
script: |
cd /var/www/manwha-reader/.docker
echo 'API_URL=${{ secrets.API_URL }}'
truncate -s 0 .env
printf 'API_URL=${{ secrets.API_URL }}' >> .env
cd /var/www/manwha-reader
docker compose -f ./.docker/compose.yaml up -d
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introdu

## Setup

Make sure to install the dependencies:
Make suree to install the dependencies:

```bash
# npm
Expand Down

0 comments on commit 091afa1

Please sign in to comment.