refact: corrigindos todas as urls do js que se comunica com o php #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy para VPS | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout do código | |
| uses: actions/checkout@v3 | |
| - name: Configurar chave SSH | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| ssh-keyscan -H 191.252.177.252 >> ~/.ssh/known_hosts | |
| - name: Deploy para VPS | |
| run: | | |
| ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=15 -i ~/.ssh/id_ed25519 root@191.252.177.252 << 'EOF' | |
| cd /www/sites/e-commerce/ | |
| git pull origin main | |
| docker-compose down | |
| docker-compose up -d --build | |
| EOF |