In today's development world is easier than ever to deploy your projects online with minimal configuration, with frontend and JAM Stack/node powered apps there are a lot of good options: Vercel, Netlify, GitHub Pages, Gitlab Pages, Firebase Hosting. Unfortunately for modern php/Laravel powered apps with Vue/React frontend there's no too many with minimal configuration with the quality of the options mentioned above out of https://www.heroku.com/ before the change of its terms and I don't find a good one-to-one replacement for it.

Later I found https://zellwk.com/blog/github-actions-deploy/ I just needed the SSH key to push from GitHub Action instead of my local as the first approach.

name: Laravel App Deployment on: push: branches: ["master"] pull_request: branches: ["master"] jobs: build: deploy: if: ${{ github.event_name == 'push' }} name: Deploy runs-on: ubuntu-latest needs: build environment: name: demo url: ${{ secrets.SITE_URL }} steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install SSH Key uses: shimataro/ssh-key-action@v2 with: known_hosts: unnecessary - name: Adding Known Hosts run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - name: Download frontend build uses: actions/download-artifact@v3 with: name: frontend-build path: public - name: Store live name run: git remote add live ${{ secrets.DO_REPO_URL }} - name: Deploy with git env: branch_name: live_digital_ocean run: | echo "Deploy to staging server" git config --global user.email " " git config --global user.name "Action Bot" git add.

Tools: cerbot, GitHub Actions #steps Steps
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners