Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinav232004 committed Feb 26, 2024
1 parent fec3c9b commit 7fdf6dd
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,13 @@ jobs:
env:
CI: false
run: |
gcloud compute ssh ${{ secrets.GCP_INSTANCE_NAME}} --zone=${{ secrets.GCP_ZONE }} --command '
cd /etc/nginx/sites-enabled &&
ls -l &&
sudo awk '!done && /try_files \$uri \$uri\/ =404;/ { print; print " proxy_pass http:\/\/localhost:8000;"; done=1; next } 1' /etc/nginx/sites-enabled/default > temp_default &&
sudo mv temp_default /etc/nginx/sites-enabled/default &&
sudo systemctl restart nginx
'
gcloud compute ssh ${{ secrets.GCP_INSTANCE_NAME}} --zone=${{ secrets.GCP_ZONE }} --command '
cd /etc/nginx/sites-enabled &&
ls -l &&
sudo sed -i "/^try_files \$uri \$uri\/ =404;/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ proxy_pass http:\/\/localhost:8000;" /etc/nginx/sites-enabled/default &&
sudo sed -i "s/try_files \$uri \$uri\/ =404;/#&/" /etc/nginx/sites-enabled/default &&
sudo systemctl restart nginx
'

0 comments on commit 7fdf6dd

Please sign in to comment.