Does anyone tried to upload the laravel using github auto upload?

Website URL

(please specify the URL of the site on which you are experiencing the problem)

Error Message

My Website is showing white page.

this is my yml from github

on: push
name: :rocket: Deploy website on push
jobs:
web-deploy:
name: :tada: Deploy
runs-on: ubuntu-latest
steps:
- name: :truck: Get latest code
uses: actions/checkout@v4

- name: 📂 Sync files
  uses: SamKirkland/[email protected]
  with:
    server: ${{ secrets.server }}
    username: ${{ secrets.username }}
    password: ${{ secrets.password }}
    server-dir: /htdocs/jobfinder/

this is my .htaccess

RewriteEngine On RewriteRule ^(.*)$ /jobfinder/public/$1 [L]

before deploying I already run laravel optimizer and npm install.

my website is good if I use the filezilla to transfer but when using github … it shows blankpage

That error means your autoload file is not uploaded, in the wrong spot, or has the wrong name.

Make sure you uploaded all the required files

2 Likes

Looking at the path, it seems that you also need a step in your GitHub Actions pipeline to collect the Composer dependencies so you can upload them along with your application code.

Our contact form uses the php-actions/composer action for this:

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.