Comments (2)
Thanks @metaskills for the quick response. This has helped me rule out any weirdness with the handler. I have some new clues to go on and will keep looking. Thank you!
from lamby.
Interesting. There are some advanced configs I called out needing documentation in the #138 issue. Normally Rails has lots of middlewares. None of these require the handler to have any knowledge since they all work with Rack (your Rails app) simply by running the application. For example, ActiveRecord's database/shard middlewares. They get wrapped up as part of the application booting via all your standard configurations, gems, etc. I'd be surprised that Omniauth Auth0 was not the same.
That said, there is a configuration to customize the Rack application that the (also configurable) handler sends events to. You can see the default here. https://github.com/customink/lamby/blob/master/lib/lamby/config.rb#L34-L36. I think one valid use case would be doing thing you might normally do in a config.ru
file. So to configure the "rack_app" you could add a config/initializers/lamby.rb
file with something like this:
Lamby.config.rack_app = Rack::Builder.new do
map ENV['RAILS_RELATIVE_URL_ROOT'] do
run Rails.application
end
end.to_app
from lamby.
Related Issues (20)
- v4 Upgrade Guide? HOT 8
- Issue while runing ./bin/deploy from the RAils on Lambda in 5min guide HOT 14
- Outline Arm64 Steps HOT 3
- qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2 for M1 HOT 6
- libmysqlclient.so.18: cannot open shared object file: No such file or directory HOT 3
- Document what exact AWS-managed policies are needed for the access key HOT 5
- SIGTERM SignalException: Init error when loading handler HOT 5
- Codespaces Share HOT 1
- Don't set percent encoded queries into Rack Environment's `QUERY_STRING` HOT 1
- cannot load such file -- config/environment HOT 3
- Too slow even with provisioned provisioned concurrency HOT 6
- Opinionated OpenID Connect HOT 2
- Postgres ? HOT 2
- Ensure VPC Lattice Events Work HOT 2
- Use Image Devcontainer Step in GitHub Actions
- Unable to run my app or the cookiecutter... getting error `materialize': Could not find HOT 14
- Performance vs traditional server HOT 4
- uninitialized constant Rack::RACK_MULTITHREAD HOT 5
- Local Development
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 lamby.