Coder Social home page Coder Social logo

Comments (3)

weddingdj avatar weddingdj commented on June 8, 2024

I modified Laravel in order to get rid of the necessity to set the web root in the public directory. The reason is that I wanted IdeaSpaceVR as easy to install for anybody as Wordpress is: download a zip, unpack it, use it on a shared hosting provider immediately, without configuring your web server.

Do you have an idea how to achieve both - composer install and my solution?

from ideaspace.

vesper8 avatar vesper8 commented on June 8, 2024

well.. as someone who's been developing with Laravel for nearly 3 years, I feel like having the web root in /public is safe and wise and exactly how it should be.. in fact for the last few years when ever I install Wordpress somewhere I also put in the public folder.. this way you can put things in the root that should never be accessible to anyone visiting the web.. just good practice if you ask me

I see you've simply moved the index.php to the root. I guess Laravel doesn't really care where the index.php is. Even if you had an .env file and a composer.json and ran composer install, you could still have the index.php in the root and as long as you point it there in your nginx/apache/cpanel then all should be fine

I've seen a few other projects do it like you are doing.. as a developer I'm not a fan of your approach but I guess the best solution would be to offer both installation procedures.. the 'easy' one which is to download the zip.. and the 'developer' one which is to git clone / composer install

All your "setup" variables could also be populating the .env file, still relying on the .env file as a store for the values but allowing the convenience of a setup wizard for the less tech-savvy crowd

Maybe that could be the way forward then?

One of the benefits of doing it this way is that people can check out your dev-master branch and don't have to wait for you to package a new release to get the latest fixes/features

It also makes it easier for yourself to keep up to date with the latest Laravel enhancements.. speaking of which.. 5.2? Any plan to upgrade to 5.7 for the last 2 and a half year's worth of goodies? There are so many!

Anyway keep up the fine work.. looking forward on having a deeper look at what you've done here.. I'm very interested in starting to develop for VR/AR/XR and Aframe seems like the way to go and this project of yours might be my how I get my toes wet!

from ideaspace.

weddingdj avatar weddingdj commented on June 8, 2024

Thank you for your ideas and suggestions. I think to offer both ways to install it would be best. If you want you could do a PR?

I know that I should upgrade slowly to a newer Laravel release, but I am currently developing one theme at a time in order to prove what IdeaSpaceVR can do. At this point in time I feel this is more important than having the latest features of Laravel.

from ideaspace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.