-
-
Notifications
You must be signed in to change notification settings - Fork 7
.htaccess not added in /public after installing this with help of composer #1
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
Comments
Hi @pouyana, I've just tried it and it works, the Could you provide more informations if this is still an issue for you? |
Using a clone of the symfony/demo app with the package manually added into composer.json, I have this issue. On composer install (heroku deployment and local deployment) the .htaccess file is not added. However when you run composer update (both locations) it is added. |
i have the same problem after installing this recipes |
Is it a Windows issue? Why is it not directly contained in the installation package? |
The vendor\symfony\ apach-pack directory has only one composer. Json?No other files? |
@meiyoufengzhengdexian : it calling this repo |
Same issue here, after a fresh install with symfony/skeleton, on Windows. |
For another data point, not working for me either (symfony 4), even after 'composer update'. |
i thought may be it be a good feature to have the possibility to execute the "flex script" another time since it failed to do what we want without make change if there file in the path. |
|
Same on Windows |
The same for me. I have SF4 & MacOS. File .htaccess is not created after composer install or update. I have installed SF from 'symfony/website-skeleton' |
Anyone willing to debug the issue and propose a patch? |
Issue seems to be fixed for me with symfony/flex@b72fcd4 No problems after updating symfony/flex to >= 1.0.62 This is my understanding of the issue: the |
@gsylvestre Thanks for the investigation. Upgrading Flex from time to time is a good idea :) Closing as this is now fixed. |
Not working for me. I have symfony/flex 1.0.71 |
I'm also not seeing a |
I was able to resolve the issue in my case. I removed that line and ran Hope this helps anyone. |
A few things. Make sure when you list the files under the folder, you request the hidden files as well (e.g., ls -a). It could be there, you are just not seeing it... Also, if you are getting errors during the downloads, make sure you have enough memory, especially if you are doing this on a remote server via SSH or similar. Also, errors may occur if your environment isn't set correctly, (e.g., export APP_ENV=prod if you are building a production environment - check by echo $APP_ENV). |
I faced the same issue. What I did was slightly different from what @rwslinkman suggested. Since I was deploying my app into Heroku, I couldn't have First, I removed my already existent installation. I just removed the So, I just ran the installation command again: This time, both |
I had a similar problem when executing the composer update via PHPStorm console. The interaction menu @StanleySathler mentions did not appear. I then used my Ubuntu terminal which worked fine. |
how resolve this problem? |
@vigorousss did you try all the different steps explained above? Specially these ones: |
I fixed this by clearing cache.
|
|
Is this pack working? According to symfony/demo#711 (comment) it should add
.htaccess
to thepublic
folder.But for me it did not do anything at all.
The text was updated successfully, but these errors were encountered: