Git Product home page Git Product logo

Comments (7)

notdian avatar notdian commented on August 23, 2024

Hello there, can you check this out, still can't use the package because the default config sits at ~/.iginition.json outside of the laravel basepath?

@rubenvanassche @freekmurze

from ignition.

fightborn avatar fightborn commented on August 23, 2024

20 days and no reply? Like, nothing?

"Beautiful" error page that one can't get rid of and if something goes wrong - the support is no where to be found. Awesome. And this is core part of most popular framework...

from ignition.

freekmurze avatar freekmurze commented on August 23, 2024

@fightborn Please keep it friendly. If this is urgent for you doesn't necessarily make it urgent for us.

Here are a couple of options:

  1. Try to PR a fix.
  2. Remove ignition from composer. Laravel will still work, and you'll see a more basic error page.

Good luck!

from ignition.

notdian avatar notdian commented on August 23, 2024

Hello @freekmurze, I'm willing to submit a PR, what would be acceptable behavior for you?

Continuing to use the home dir as the default path and allowing to change the path in a config file or changing the default path to base_path().

Thank you!

from ignition.

freekmurze avatar freekmurze commented on August 23, 2024

Thank you! Allowing the path to be changed in the config file seems like the route to go for me.

from ignition.

leafling avatar leafling commented on August 23, 2024

I came across this issue when I upgraded to Laravel 9. Rather than override this with a config file setting, would it make sense to compare the desired .iginition.json path against the open_basedir paths to see if the users home directory is allowed? Then it could be seamless and there would be no need to worry about a separate config file setting and no need to direct people to manually add a config setting to override what is likely to be a pretty common problem -- for pretty much everyone that uses open_basedir restrictions.

How about this change to the getConfigFilePath in DefaultConfigFinder.php:

    public function getConfigFilePath(): string
    {
        if (! $homeDirectory = $this->findHomeDirectory()) {
            return '';
        }

        $filepath = "{$homeDirectory}/.ignition.json";
        return @is_readable($filepath) ? $filepath : '';
    }

I just created a pull request with this solution here:
#36

from ignition.

billsoftltd avatar billsoftltd commented on August 23, 2024

That's a mistake for me too. You may need to replace "getenv('HOME')" with "_SERVER['document_root']"

from ignition.

Related Issues (20)

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.