Any Laravel user mind sharing their config? #3411
HassanZahirnia
started this conversation in
General
Replies: 1 comment 2 replies
-
Have you seen Deployer provision recipe? It can configure the whole web-server and correct permissions as well. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey I just discovered this great tool and I love it so far😊👍
But the downside I found with it is there are really few to non-existent resources on how to use this and set it up properly for projects (in my case a Laravel project).
I have a working deploy config now but I wonder if anyone mind sharing their config they use for a real world application. So far the examples and code snippets I saw didn't seem like something to be used for an actual production deployment.
For example in an actual production site, you need the user running webserver/php to be owner of your storage files. But the default Laravel recipe config does not take this into account and builds everything as the logged in user.
After lots of trials and errors I found this snippet to take care of the permission matter:
But I feel like this is not ideal since it asks for sudo password twice in the same deployment process.
I wonder if this can be done better, or maybe I'm missing something?
I will be glad if Laravel community could share their experience with this tool 😊🙌🌸
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions