Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue Deploying with Laravel Forge

I am trying to deploy a Laravel PHP Project with Laravel Forge. I have connected to my repository on github correctly. However, when I hit deploy, if I go to the public IP for the site, I just see:

"No input file specified."

on the page.

I do not know why it is exhibiting this behavior.

If I go to the latest 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 do have a composer.json file in my laravel folder....

Any ideas? Thank you in advance.

like image 860
user1072337 Avatar asked Oct 12 '14 20:10

user1072337


1 Answers

It looks like the /home/forge/default/laravel directory doesn't exist. Could you ssh in and verify that the directory exists?

These are the commands that the default forge deploy script runs:

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

It looks like your deploy script is navigating to /home/forge/default/laravel instead.

like image 61
jeffwtribble Avatar answered Sep 17 '22 20:09

jeffwtribble