Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Hide project instead of deleting them #59
If you implement Menu | Tools | Hide then the user can indicate what sub-directories of root do not contain a project (black listing), it may be even better to do the opposite and indicate what directories do contain projects (white listing). It does require some administration, like putting a .laragon project file in the root or the indicated directories. I feel deleting projects/directories is dangerous and should not be the responsibility of Laragon. - Do i really need to say i like Laragon a lot? I DO, how could i not! Also give i t a star, would give more if possible :)
The directory structure i have locally is a 1:1 copy of what is at my hosting server. The root there has 15 directories that do NOT contain projects. They are in my case (.cagefs, .cl selector, .cpanel, .cphorde, .htpasswords, .softaculous, .trash, etc, mail, ocartdata, perl5, public_ftp, srbackups, ssl, tmp). The root for my primary domain is served from public_html directory. Every additional hosted site is served from an additional directory under the root (so the same level as the html_root for the primary).
I'm using Filezilla to sync my local tree with what is on the server and have synchronized browsing enabled. Using PHPStorm i have project in the directories that contain actual sites. Laragon is creating virtual hosts and all magic on the irrelevant directories, so i am looking for a way to hide these.
I assume that there will be other with the same "problem"? Your suggestion for a .laragonignore file is a workable approach. Adding a graphical interface for this is probably overkill and too much work to implement.
@CryptoVaraan : I see your point.
Laragon will ignore them in:
Note: You may need to click "Menu > Apache > site-enabled > Delete all auto..." to clean them.