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

Villdar's avatar

Deploy on Forge with DigitalOcean and GitHub

Hello! I want to deploy my laravel app on forge, this is my first time. So i follewed the istruction during the registration and so on.

So i've created an account on digital ocean and copied the api key.

Next, i created a new server on forge. Now, i'm trying to deploy my app from github, but i got this error:

Cloning into 'didattica.com'...
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - nette/schema is locked to version v1.2.1 and an update of this package was not requested.
    - nette/schema v1.2.1 requires php >=7.1 <8.1 -> your php version (8.1.0) does not satisfy that requirement.
  Problem 2
    - nette/utils is locked to version v3.2.3 and an update of this package was not requested.
    - nette/utils v3.2.3 requires php >=7.2 <8.1 -> your php version (8.1.0) does not satisfy that requirement.
  Problem 3
    - phpspec/prophecy is locked to version 1.13.0 and an update of this package was not requested.
    - phpspec/prophecy 1.13.0 requires php ^7.2 || ~8.0, <8.1 -> your php version (8.1.0) does not satisfy that requirement.
  Problem 4
    - nette/schema v1.2.1 requires php >=7.1 <8.1 -> your php version (8.1.0) does not satisfy that requirement.
    - league/config v1.1.1 requires nette/schema ^1.2 -> satisfiable by nette/schema[v1.2.1].
    - league/config is locked to version v1.1.1 and an update of this package was not requested.

How can update those things on forge? What i'm missing?

0 likes
6 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Sounds like your composer.lock file isnt correct. Run composer update locally, and push. Then try again.

2 likes
Villdar's avatar

@Sinnbeck thanks, that's worked and my app is online. But i cannot access the storage folder.. why?

Sinnbeck's avatar

@Villdar Sounds unrelated :) Without an error message its hard to say. Consider making a new thread as this one has already been set as solved.

1 like
Villdar's avatar

@Sinnbeck I don't have any error, i gess is probably cause the images are uploaded on the storage folder and not in the public? Anyway thanks :)

Please or to participate in this conversation.