Comments (12)
Use the rackup
option -O NAME[=VALUE]
. So for a worker count of 2 you would do something like this:
$ rackup -r agoo -s agoo -O wc=2
from agoo.
Gotcha. And thanks for the quick response!
By the way, I forked your repo to fix a few compilation issues. If you're interested I can submit a PR.
from agoo.
By all means. I use a C11 compiler so miss some of those. If you have them covered a fix would be really helpful.
from agoo.
Great! Will do.
By the way, does agoo support a) listening on a unix socket, and b) hot restarts? (Via USR2 or some other method)
from agoo.
It does support unix sockets. Checkout the bind_test.rb
file.
Agoo does not support hot restarts today. On the plus side it starts pretty fast. :-)
from agoo.
I see. So unix socket not possible via rackup, right? (Couldn't find anything related to it on the rack handler definition)
from agoo.
Good point. I can add that. If you want to open an issue for that I'll use that for the addition.
I'm curious, rackup
introduces a lot over overhead. What are your reasons for using it?
from agoo.
I actually don't use the rackup
command regularly. I've always just fired puma
or unicorn
directly, and have them read the config.ru file and start serving. The only reason I'm using it now is because I'm testing agoo in some of my apps, and want to be able to swap one for another without too much fuss.
I'm not sure what your reasons are not to do it that way, but I think supporting config.ru from the agoo
command might make adoption easier.
from agoo.
I suppose Agoo could look at the file suffix and if a .ru
it could assume it is rack. That would be easy enough.
from agoo.
;)
from agoo.
from agoo.
I'll put something up for both those issues in the next few days. You comments would be appreciated.
from agoo.
Related Issues (20)
- Fragment usage HOT 17
- CORS issues HOT 8
- Agoo dumps core on malformed SDL HOT 5
- fails to launch in clustered mode HOT 17
- Agoo Fragment Cycle Security Vulnerability HOT 2
- Disabling introspection for GraphQL HOT 12
- Changes on args or req does not get fowarded to the other calls HOT 9
- Static asset with space in filename HOT 4
- gem install agoo fails on MacOS Ventura 13.2.1 HOT 9
- Static .txt files are not served with utf-8 encoding HOT 8
- Agoo crash and exit HOT 7
- CLI options for SSL/TLS HOT 3
- Can you tell me how I can use agoo with rack middleware? HOT 13
- Case insensitive Content-Type header HOT 4
- GraphQL in rails HOT 22
- How to render a error message using GraphQL HOT 6
- How to create a dynamic GraphQL schema HOT 6
- Configuring worker count and thread count when used with Rails HOT 5
- Port cleanup on shutdown? HOT 3
- REMOTE_ADDR not set on ENV HOT 13
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 agoo.