GithubHelp home page GithubHelp logo

Comments (7)

satrun77 avatar satrun77 commented on August 15, 2024
  1. You can do this right now. You can change these in the config files
    Files: https://github.com/satrun77/tinyissue/tree/master/config
    Cache file: https://github.com/satrun77/tinyissue/blob/master/config/cache.php#L43
    Database file: https://github.com/satrun77/tinyissue/blob/master/config/database.php#L51

  2. Sorry don't see any benefits here.

from tinyissue.

nickbe avatar nickbe commented on August 15, 2024
  1. thanks for the information. I honestly didn't know that.
  2. all right. Just thought I'd ask.

from tinyissue.

nickbe avatar nickbe commented on August 15, 2024

Which setting determines the storage of the upload files under storage/app?
database + uploads is probably all I'd need, yes?

from tinyissue.

satrun77 avatar satrun77 commented on August 15, 2024

From .env file you can move the database to anywhere you want. The variable name DB_DATABASE

The application storage directory can be defined here:
https://github.com/satrun77/tinyissue/blob/develop/config/filesystems.php#L48

The directory inside ./app can be changed with .env variable named APP_UPLOAD_DIR. For example the automate tests uses directory named testing instead of uploads https://github.com/satrun77/tinyissue/blob/master/.env.testing#L8

from tinyissue.

nickbe avatar nickbe commented on August 15, 2024

I moved my database and upload files to a seperate folder.
Did I get this right... some options can be defined in the config files and also overwritten in the .env file?

from tinyissue.

satrun77 avatar satrun77 commented on August 15, 2024

Yes.

I'm working on upgrading Laravel to 5.2. There are more options from the config files that can be overwritten in the .env. Also, the default database sqlite location moved from storage directory to database directory.

The directory config contains everything that you can configure. Any configuration value that uses the function env() means you can overwrite in .env. For example, in https://github.com/satrun77/tinyissue/blob/master/config/cache.php#L16 The cache driver is default to 'file' you can overwrite in .env with CACHE_DRIVER=you_new_value

from tinyissue.

nickbe avatar nickbe commented on August 15, 2024

Ah. great.
Maybe one day you could write this down into the documentation together with all the possible options.
Thanks again,

from tinyissue.

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.