Other frameworks just upload, but you know Lavarel's portal file is under the public folder, so .... How to deploy? or the whole upload and then redirect all the visits to public. Do not understand, please the talent advice.
By the way, it's not normal for the entry file to be placed under public. Too much trouble to add, what is the special reason?
Reply content:
Other frameworks just upload, but you know Lavarel's portal file is under the public folder, so .... How to deploy? or the whole upload and then redirect all the visits to public. Do not understand, please the talent advice.
By the way, it's not normal for the entry file to be placed under public. Too much trouble to add, what is the special reason?
You need to face this problem squarely--you do need to bind the domain name to the public folder. However, this binding does not need to be "real" binding, and it is possible to use symbolic links to work around the implementation. (That is, if the binding position cannot be changed, replace the bind location with a symbolic link to the location you really want)
For the common Linux platform PHP space:
- For DA, there is essentially no concept of a primary domain, and each domain name is bound to
~/domains/yourdomain.com/public_html
- For cpanel, the primary domain is fixed to bind to the
~/public_html
- cpanel addon Domains can customize the binding location (problem natural resolution)
So for the above scenario 1 and 2, you can install the laravel in a different place, and then delete the original folder as the binding location, replacing it with symbolic links. You can use PHP's Symlink () function to create symbolic links.
I'm here to inquire about the answers to the above questions.
Symlink () exactly where to put it? Also, I built a link to/public/index.php directly in the Laravel project root directory, named index.php line? Hope the relevant people help, thank you!