Deployment Problem Using Laravel Forge

I am trying to deploy the Laravel PHP Project with Laravel Forge. I connected my repository on github correctly. However, when I delete the deployment, if I switch to the public IP address for the site, I just see:

"No input file specified." 

On the page.

I do not know why he exhibits this behavior.

If I go to the last deployment log, I see:

 /home/forge/.forge/provision-433327.sh: line 1: cd: /home/forge/default/laravel: No such file or directory fatal: Not a git repository (or any of the parent directories): .git Composer could not find a composer.json file in /home/forge To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section Could not open input file: artisan 

However, I have a composer.json file in my laravel folder ....

Any ideas? Thank you in advance.

+6
source share
1 answer

It seems that the directory / home / forge / default / laravel does not exist. Could you enable ssh and make sure the directory exists?

These are the commands that run the default forge deployment script:

 cd /home/forge/default git pull origin master composer install php artisan migrate --force 

It looks like your script deployment has moved to / home / forge / default / laravel .

+1
source

Source: https://habr.com/ru/post/976646/


All Articles