Giter Site home page Giter Site logo

Comments (14)

RamonSmit avatar RamonSmit commented on June 4, 2024 3

Fixed! Added it to tag 1.0.7.

Thanks for letting me know! This one just really slipped trough

from laravel-deploy-helper.

RamonSmit avatar RamonSmit commented on June 4, 2024 1

Great! Good to know. I guess I have to write some tests for the future.

Thanks for helping with the package, hope you like it 👍

Cheers,
Ramon

from laravel-deploy-helper.

iJos avatar iJos commented on June 4, 2024

I am having the same problem, I think the problem is with the Deployer::freshInit method (The file is created, but it is filled later in the code). And when it needs to be filled, the .lock file already exist, so the execution is stopped...

from laravel-deploy-helper.

RamonSmit avatar RamonSmit commented on June 4, 2024

Hi!

I shall take a look into this one, It's quite weird.
Give me a moment to reproduce this problem

Edit 1:
Found the bug! Thanks for reporting.

from laravel-deploy-helper.

rpsimao avatar rpsimao commented on June 4, 2024

You're most welcome.
Thanks

from laravel-deploy-helper.

RamonSmit avatar RamonSmit commented on June 4, 2024

Let me know if you run into other trouble ;-)

from laravel-deploy-helper.

rpsimao avatar rpsimao commented on June 4, 2024

I run into another error:

..........
[[email protected]] (production) The compiled services file has been removed.
[production] Linking new release to /current directory and removing temp

 [ErrorException]              
 Undefined variable: toRemove  

Nevertheless the app was deployed.

One question: the .env file is not copied to the deploy app, we have to create one?

Thanks

from laravel-deploy-helper.

RamonSmit avatar RamonSmit commented on June 4, 2024

On the first deploy you have to manually create your .env (because it needs to be filled with your personal information) and the next following releases it will be copied over to the latest deployment

On the [ErrorException] Undefined variable: toRemove part, I will take a look on that one too. Give me a moment ;-)

from laravel-deploy-helper.

rpsimao avatar rpsimao commented on June 4, 2024

Also with that error the .ldh-lockfile is not deleted, and cannot deploy another version.
Have to remove it manually

Also when deploy a new version:

[production] Trying to login into remote SSH
[production] Reading config file from remote server
[production] Found config. Checking directories.
**[production] Config file is empty... Something is wrong.**

The json config file is still empty, but it deploys the new version, and return again:

 [ErrorException]              
 Undefined variable: toRemove 

from laravel-deploy-helper.

RamonSmit avatar RamonSmit commented on June 4, 2024

What Laravel version are you using if i may ask?

from laravel-deploy-helper.

rpsimao avatar rpsimao commented on June 4, 2024

5.4.28 - PHP 7.1.5

from laravel-deploy-helper.

RamonSmit avatar RamonSmit commented on June 4, 2024

Hmm, I've updated LDH to 1.0.9, remove your .ldh-lockfile
and
The Undefined variable: toRemove should be fixed by now ;-)

from laravel-deploy-helper.

rpsimao avatar rpsimao commented on June 4, 2024

Ok the Undefined variable: toRemove error is fixed, still getting:
[production] Config file is empty... Something is wrong. error

App is deployed.

from laravel-deploy-helper.

rpsimao avatar rpsimao commented on June 4, 2024

So I erased everything from the production server and start over.
Made 2 deployments, no errors! :)

I think you can close this issue.
If I run into more troubles, I let you know.

from laravel-deploy-helper.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.