Comments (4)
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.
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.
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.
Closing; duplicated by #473, which is (potentially) solved by #474.
from valet.
Related Issues (20)
- Warning: require_once(./cli/includes/require-drivers.php): Failed to open stream with custom driver for Symfony project HOT 7
- Running Valet with ExpressVPN not work HOT 21
- Any error in the system gives a 502 Gateway error and php-fpm.log file size in increased by ~1.1gb HOT 4
- update 4.0 bug
- Upgraded to Apple M1 now Valet services are erroring after being resintalled HOT 10
- nginx: [warn] the "http2_push_preload" directive is obsolete & the "listen ... http2" directive is deprecated HOT 2
- 502 Bad Gateway : upstream prematurely closed connection while reading response header from upstream HOT 6
- My extensions all stopped working after upgrading to v4 HOT 4
- Valet share not works HOT 2
- PHP 8.3 HOT 5
- Valet install - not starting nginx and dnsmasq HOT 1
- When using valet, sys_get_temp_dir() does return /var/tmp instead of /var/folders/7s/jq24sk81665c1j4y3v9l3vth0000gn/T HOT 4
- Space in "Application Support" Causing Error During "valet share" Command HOT 1
- error 502 when i use mongodb atlas connection mongodb+srv://connection-link HOT 2
- npm run dev throws Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID after upgrading to macOS Sonoma 14.4.1 HOT 1
- Couldn't Install Laravel Valet HOT 2
- AWS S3 temporaryUrl fails on Valet HOT 2
- Share with Expose HOT 1
- NET::ERR_CERT_AUTHORITY_INVALID HOT 14
- Not working valet php command to proxy calls on Macbook M3 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valet.