New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using .env files with phar file #442
Comments
I guess the I imagine there are other similar issues with repacked application. But this is not really easy. It's hard to tell if the repacked app should search on disk, on in the phar... I have no answer for now... Maybe someone have a nice point of vieux to share! |
I think the default behavior for those use case should be :
|
@joelwurtz That means we have to embed everything 😬. I don't like that. But I just test, and indeed there is an issue with |
Thanks @lyrixx 👏 |
Hello,
I don't understand how to use .env with .phar applications
1- Create a task into
/projets/castor-test/castor.php
2- Create a .env file
/projets/castor-test/.env
3- Repack with castor
the .env is not embedded in the phar. probably normal?
4- Use the test Task
./my-app.linux.phar test
An error occurred
But why the .env file is load from
/projets
on not from the current directory/projets/castor-test/
?Thanks.♥️
The text was updated successfully, but these errors were encountered: