havenwood changed the topic of #ruby to: Ruby 3.4.1, 3.3.6 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
<FetidToot> hi! quick question... i'm spinning up a small modular sinatra app, along with grape (for the api) and sidekiq (async jobs). the setup for sinatra + grape is easy, and sinatra + sidekiq is easy, but i can't figure out how to run all three together. for example...
<FetidToot> This 'run Rack::URLMap.new('/' => App, '/sidekiq' => Sidekiq::Web)' sets up sinatra and sidekiq, and...
<FetidToot> This `run Rack::Cascade.new [App, API]` sets up sinatra and grape. how does one form a command to properly mount all three in the config.ru file?
<o0x1eef> I think might want you want to create an app that mounts all three, then run the app
<o0x1eef> run Rack::Builder.app { mount '/' => App ... etc }
<o0x1eef> Ah not mount. It is map.
<FetidToot> that's kind of what i'm doing with the config.ru file and running `rackup`. it's just a rack app at that point that mounts the various apps.
<FetidToot> i just can't find a way to mount all three apps and make them all happy.
<o0x1eef> Maybe the order matters ? Did you try to mount Sidekiq::Web first ? Perhaps it's not being routed properly. What I suggested isn't quite right anyway so ignore it.
<o0x1eef> Is there a reason to not use Rack::URLMap with 'API' as well ? If you put the /api and /sidekiq first, and App last at /, that might work
<FetidToot> i'll give it a shot. i'm basically to the trial and error stage anyway. :) one sec...
<o0x1eef> I gotta bounce for a bit
<FetidToot> thanks for the help!
grenierm has quit [Ping timeout: 240 seconds]
deadmarshal_ has quit [Remote host closed the connection]
weaksauce has quit [Ping timeout: 244 seconds]
weaksauce has joined #ruby
konsolebox has joined #ruby
deadmarshal_ has joined #ruby
Rounin has quit [Ping timeout: 265 seconds]
Rounin has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
s-liao-200 has joined #ruby
s-liao-200 has quit [Client Quit]
s-liao-200 has joined #ruby
chenggong7788 has joined #ruby
chenggong7788 is now known as nil78_
nil78 has joined #ruby
Inline has joined #ruby
nil78_ has quit [Client Quit]
nil78 has left #ruby [Leaving...]
duderonomy has joined #ruby
grenierm has joined #ruby
s-liao-200 has quit [Quit: Client closed]
mjanssen has quit [Read error: Connection reset by peer]
Inline_ has joined #ruby
Inline has quit [Ping timeout: 248 seconds]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
grenierm has quit [Quit: Client closed]
jvalleroy has joined #ruby
grenierm has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
mjanssen has joined #ruby
Linux_Kerio has joined #ruby
konsolebox has joined #ruby
mjanssen has quit [Ping timeout: 265 seconds]
Furai has quit [Quit: WeeChat 4.5.1]
Furai has joined #ruby
mjanssen has joined #ruby
cappy has joined #ruby
TomyWork has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
niv has quit [Quit: ZNC - https://znc.in]
niv has joined #ruby
cappy has quit [Quit: Leaving]
Inline_ is now known as Inline
Linux_Kerio has joined #ruby