kendarorg / PhpNuget

Php nuget manager supporting complex queries on txt files or MySQL
http://www.kendar.org/?p=/dotnet/phpnuget
Other
23 stars 15 forks source link

Data dir not located under the website root #38

Closed kendarorg closed 5 years ago

kendarorg commented 9 years ago

Suggestion from a user: Change Settings::$PackagesRoot manually in your code to next look for support handling the package directory on network drive, maybe you can in setup.php allow insert the path to packages directory manually, when the default will be your default location.

Settings::$PackagesRoot = Path::Combine("\MY_SERVER","MY_DIRECTORY_PATH");

bkraul commented 5 years ago

Wouldn't this require open_basedir to be set? (at least in Linux). I'd rather just use a symlink and enter a path relative to root, but again that is Linux.

kendarorg commented 5 years ago

Added support for two new env variables to handle this. UPLOAD_DIR and DATA_DIR, the will have precedence over the ones generated via setup