Coder Social home page Coder Social logo

Comments (4)

drbyte avatar drbyte commented on August 23, 2024 3

This could be beneficial.

I currently just edit my .valet/Caddy/foo.dev file directly to add an environment var to the couple sites that need it:

    fastcgi / 127.0.0.1:9000 php {
        index server.php
+       env VARNAME value
    }

... but of course that requires a manual edit, and remembering the syntax, and remembering the right line to put it on.

from valet.

djfurman avatar djfurman commented on August 23, 2024

I think it could be cool. For each laravel site, I open up the dotenv and setup:

  • my local mariadb user and password
  • database equal to the directory name
  • set redis for the session and cache drivers
  • set local redis password

Since these are shared across all of my valet sites I think it makes sense.

from valet.

MartinPeverelli avatar MartinPeverelli commented on August 23, 2024

I too, used to edit the Caddyfile, but since Valet migrated to nginx, I lost the ability to do it.
Plus, creating files for the variables outside the codebase itself, was a little bit off for me.
Anyway, I've been using this locally for a while now, and I made a PR out of it.
#473

from valet.

mattstauffer avatar mattstauffer commented on August 23, 2024

Closing; duplicated by #473, which is (potentially) solved by #474.

from valet.

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.