Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
230 views
in Technique[技术] by (71.8m points)

php - Laragon - How do I serve a website on startup?

Right now I have to open laragon start all > go into commands > and write php artisan serve, only then can I access the local website.

My question is how can I start all and serve the website on start of the program.

Thank you in advance!

question from:https://stackoverflow.com/questions/66053460/laragon-how-do-i-serve-a-website-on-startup

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

you have to put your project folder into C:laragonwww

when start the laragon service it's gonna search in that folder and use the name of the folder project to create a custom url, for example

if you put your project folder named newproject into the C:laragonwww folder, when you start the service, laragon it's gonna make an url with the name of that folder newproject.test

C:laragonwww ewproject-> newproject.test

C:laragonwwwlog-> blog.test


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...