Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

clkline's avatar

Had to redeploy, can git pull from command line, but quick deploy no longer works

I managed to introduce a laravel-breaking bug into our deployed code, and in trying to resolve it ended up freaking composer out and being unable to run migrations, much less anything else. So I went through attempting to revert everything I did in our master and then created a new production2 branch to deploy from off of that master (that's another cry-story in and of itself... I can't visualize git).

I deployed the production2 branch okay the first time, but now this branch will not fully update from Forge, nor in quick deploy.

From github.com:FaithInMotion/capstone
 * branch            production2 -> FETCH_HEAD
   7a2218d..a3b7c0d  production2 -> origin/production2
Updating 7a2218d..a3b7c0d
Fast-forward
 project/app/BaseModel.php                              | 3 +++
 project/app/Story_Photo.php                            | 1 +
 project/resources/views/character/show.blade.php       | 9 +++++----
 project/resources/views/layouts/sidebar/main.blade.php | 2 +-
 4 files changed, 10 insertions(+), 5 deletions(-)
Composer could not find a composer.json file in /home/forge/default
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

Our site works (I have corrected our meta to point to project/public like before), and I can SSH into the server and do a git pull origin production2 without an issue. I would really like for quick-deploy to work though, for the sake of the student who is using this branch for testing.

Ideas?

0 likes
2 replies
lindstrom's avatar

I know this is late, but did you try editing your deploy script?

Login > Manage then under Active Sites Manage > Edit Deploy Script. Right next to quick deploy.

It's probably still trying to pul origin master.

IDK other than to ping Taylor. He's pretty responsive.

tosinoginni's avatar

Thanks lindstrom, that was helpful for me, while updating my origin branch in Laravel Forge.

Please or to participate in this conversation.