Comments (2)
I think subdomains solve your problem. You can do
puma-dev link -n api.myapp
puma-dev link -n admin_dashboard.myapp
And then somewhere in an initializer use the subdomain to set the ENV (or equivalent best practice)
from puma-dev.
I'm afraid that didn't work in my testing 😞 My initial experiments above suggested that the .sock
file on disk might be the culprit:
- When
api.myapp.test
boots up (assuming it's the first to boot), it creates a.sock
file - When
admin_dashboard.myapp.test
boots up a moment later, I believe it finds that.sock
file and thus connects to the same already-running Puma instance, rather than spawning a new Puma instance with different ENV vars - The result is that you're unable to run 2 Puma instances of the same repo side-by-side with different ENV vars
from puma-dev.
Related Issues (20)
- Allow puma config file to be authoritative over threads and workers
- TLS not working in Monterey HOT 2
- Ruby debugger? HOT 5
- Proxy doesn't work when domain is `local`
- Add a generic command to the proxy support HOT 1
- puma-dev not working in Ubuntu 22.04 with Rails 4 HOT 2
- "unexpected exit: No puma executable found for ruby system" HOT 1
- [zsh] [mac] On Mac OS puma-dev loads interactive zsh init files HOT 2
- Running in Docker Alpine results in `http: panic serving 172.17.0.1:42896: runtime error: invalid memory address or nil pointer dereference` HOT 1
- How to stop puma-dev without uninstalling?
- puma-dev -install can miss adding CA cert to Keychain HOT 1
- Ruby version mismatch between puma-dev and the Rails app HOT 1
- Not reaching app HOT 2
- Server's ip address could not be found.
- Instructions for puma-dev HTTPS with guard-livereload?
- How to use while offline? HOT 1
- `DNS Server failed: listen tcp 127.0.0.1:9253: bind: address already in use` error when starting the app with `puma-dev` command HOT 1
- Cannot configure puma-dev to use ipv6 proxy
- Curl::Err::HostResolutionError on WSL HOT 2
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 puma-dev.