Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide project instead of deleting them #59

Closed
CryptoVaraan opened this Issue Feb 7, 2019 · 8 comments

Comments

Projects
None yet
2 participants
@CryptoVaraan
Copy link

CryptoVaraan commented Feb 7, 2019

Menu | Tools | Delete project would be better when it just does hide the directories that do not really contain any projects. Currently all directories under the server root are assumed being projects.

@leokhoa

This comment has been minimized.

Copy link
Owner

leokhoa commented Feb 8, 2019

@CryptoVaraan : How does Laragon know which directories should be hid?

@CryptoVaraan

This comment has been minimized.

Copy link
Author

CryptoVaraan commented Feb 8, 2019

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 :)

@leokhoa

This comment has been minimized.

Copy link
Owner

leokhoa commented Feb 9, 2019

Thanks for your star :)

I can't figure out why a directory intentionally put in DocumentRoot but not a project. Implement the feature is easy but will make Laragon GUI complicated. I'm thinking of putting a .laragonignore file inside directories you want to hide.

@CryptoVaraan

This comment has been minimized.

Copy link
Author

CryptoVaraan commented Feb 9, 2019

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.

@leokhoa

This comment has been minimized.

Copy link
Owner

leokhoa commented Feb 11, 2019

@CryptoVaraan : I see your point.
I've released Laragon 4.0.9 which may help you. You can add IgnoreList directive in laragon.ini (Menu > Laragon > laragon.ini):

[preferences]
IgnoreList=mail|ocartdata|perl5|public_ftp|srbackups|ssl|tmp

Laragon will ignore them in:

  1. hosts file
  2. Virtual Hosts
  3. SSL certificates (in case you enable SSL)

Note: You may need to click "Menu > Apache > site-enabled > Delete all auto..." to clean them.

@CryptoVaraan

This comment has been minimized.

Copy link
Author

CryptoVaraan commented Feb 12, 2019

Thank you for the effort so far! Can you please also remove the ignored ones from Menu | host_root ? Now it is still possible to click a link to a non-project location.

@leokhoa

This comment has been minimized.

Copy link
Owner

leokhoa commented Feb 14, 2019

@CryptoVaraan : I've fixed it in Laragon 4.0.10

@CryptoVaraan

This comment has been minimized.

Copy link
Author

CryptoVaraan commented Feb 15, 2019

GREAT! Now it works perfect. I still would like to see Menu | Tools | Delete project being removed, since it should not be the responsibility of Laragon to manage deletion of entire projects... but that may be only my way of thinking 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.