-
Notifications
You must be signed in to change notification settings - Fork 397
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
Handle .phar-Files #908
Comments
Try to use this in your sites.conf
I know this command looks weird and somehow bogus, but trust me, thats how we can trigger laragon.exe to run custom command as programmed by original author. |
Thanks, that works well! |
Yes, but need to use external cmd file. laragon will detect 'public' folder to automatically point the vhost to that folder. the above command will not trigger this because those command run after the detection. i use this method for Drupal (in sites.conf) of my laragon fork, you can try to install it and find the cmd sample |
Thanks Husnil, |
Yes that is the file, but I didnt move the host config tu that file. What happen is, when creating new project, Laragon will invoke that command and WAIT it till finish BEFORE detecting the 'public' folder, so we have the chance to create the folder first. After the script finish, then only laragon will continue project creation and looking for public folder, and auto-pointing the vhost to public folder. Hopefully my explaination understandable. |
And the content of the cmd-file is only "mkdir/public"? Can you please paste the code of your cmd-file? |
I found out that, laragon will look for index.php in the public folder, try this
|
Thank you again for your support. The solution you mentioned works great! |
Of course, no problem. Glad i can help 👍 |
The commands for downloading an archive including subsequent unpacking for a project are stored in the sites.conf file.
For a Contao project, I usually use the command
Contao 5.3=composer create-project contao/managed-edition %s 5.3.* && curl https://download.contao.org/contao-manager/stable/contao-manager.phar - o %s/public/contao-manager.phar.php.
This works very well.
Now I just want to get the file "contao-manager.phar" from the Contao host and store it in the subfolder public under the name contao-manager.phar.php.
Is that possible, and if so: how?
Thanks for your Inputs!
The text was updated successfully, but these errors were encountered: