• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Git / Laravel extension: files are not deployed.

zerfl

New Pleskian
Server operating system version
Ubuntu 20.04 x86_64
Plesk version and microupdate number
Plesk Obsidian 18.0.51.0
Hello,

I am not sure how to further debug this so I came here for some help.

I have a subdomain, sub.example.com that runs a Laravel application which is connected to a remote git repository. The deployment of files does not work (e.g. moving the new contents to /var/www/vhosts/example.com/sub.example.com/), even though the git repository was successfully fetched.

- Running a Deploy using the Laravel extension → Deployment → Deploy pops up the "Deployment task is running" window, doing its thing, completes successfully, but no files are updated. Deployment mode is also set to "Automatic" in this screen and all deployment steps are ticked.
- Running a Deploy using the Git extension → Deployment → Deploy now pops up a similar window and finishes quickly with no errors given.

The git fetch was successful and I can see the last commit message. The subscription's user has /bin/bash access.

Some more info:

Code:
# plesk ext git --info -domain sub.example.com -name laravel_81f15e
Domain name: sub.example.com
Repository name: laravel_81f15e
Deployment path: /sub.example.com
Deployment mode: auto
Active branch: main
Repository type: pull
Remote URL: [email protected]:[...]/[...]
Webhook URL: https://[...].com:8443/modules/git/public/web-hook.php?uuid=[...]
Skip SSL verification: disabled
Run Post-Deploy Actions: disabled

Code:
# plesk ext git --deploy -domain sub.example.com -name laravel_81f15e
The repository "laravel_81f15e" information was fetched.

Code:
node@power:~/git/laravel_81f15e$ git log
commit a0bbb9cd8f45a6adda06cd712d1ed8157ea33efe (HEAD -> main)
Author: ###
Date:   Fri Mar 24 08:35:45 2023 +0100

    My last commit

Code:
# plesk version
Product version: Plesk Obsidian 18.0.51.0
     OS version: Ubuntu 20.04 x86_64
     Build date: 2023/03/10 09:00
       Revision: 7de3d6afacb31f7ca7bdc07684f3b689cb7b0ef6

What am I missing? Thanks!
 
Too late to edit my op:

Additional info:

/var/log/plesk/panel.log shows:
Code:
[2023-03-24 09:46:18.110] 2944074:641d63592d5a1 ERR [panel] Table is not detected
after each deploy attempt, but that's about it - no other messages.

Code:
node@power:~$ ls -l /var/www/vhosts/example.com/
total 36
drwxr-xr-x  3 node psacln  4096 Mar 24 09:08 git
drwxr-x--- 14 node psaserv 4096 Mar 16 10:25 sub.example.com
drwxr-x--- 14 node psaserv 4096 Dec 27 15:24 httpdocs
drwx------  9 node root    4096 Mar 24 06:31 logs
 
I had the same issue. The problem was that the deployment took place at a different folder than the root folder of the project (it was deploying in the public folder of the laravel project...) Check again your repository settings in the git plugin.
 
Back
Top