Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Travis Coats
15,058 PointsDeploying Laravel to a Subdomain
I am running two sites on a shared hosting plan and I have been messing around with laravel. I notice that the public folder is the one which must be placed into the 'public_html' folder. The problem I have is that my main directory is for a site I use as the master domain on my plan and my development site is a subdomain which I have set as an addon domain in my CPanel. So when someone visits my development site it is actually a subfolder on my main public_html folder. How can I work around this when I use laravel for that development site?
1 Answer
Jeremy Tobias
7,572 PointsWhen you add your subdomain in cpanel, set the document root to public_html/public and then put your laravel project into the subdomains public_html folder