<easbarbosa>
either Dir or Pathname, could not find a function for that
<easbarbosa>
.start_with? works but its meh
<weaksauce>
easbarbosa don't think there's anything built in
<weaksauce>
you'd want to use the expanded path to make the helper
<weaksauce>
so normalize the path to an absolute path and startswith would probably suffice unless you have some weird path
flooose has quit [Ping timeout: 256 seconds]
gggp__ has joined #ruby
gggp has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
gggp__ has quit [Ping timeout: 272 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
mrkz_c has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
FetidToot has joined #ruby
Rounin has quit [Ping timeout: 240 seconds]
gggp has quit [Read error: Connection reset by peer]
gggp has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
<easbarbosa>
weaksauce: indeed, for now that will do, I may come up with a better solution later
<easbarbosa>
weaksauce: thanks
jetchisel has joined #ruby
lunarkitty has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
neshpion has quit [Quit: neshpion]
gggp_ has joined #ruby
gggp has quit [Ping timeout: 252 seconds]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 272 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 245 seconds]
grawlinson has quit [Quit: SIGTERM]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 250 seconds]
gggp_ has joined #ruby
grawlinson has joined #ruby
gggp__ has quit [Ping timeout: 256 seconds]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
desnudopenguino has quit [Ping timeout: 276 seconds]
desnudopenguino has joined #ruby
gggp_ has joined #ruby
jtdowney has quit [Quit: Bye]
jtdowney has joined #ruby
gggp__ has quit [Ping timeout: 258 seconds]
roadie has joined #ruby
gggp__ has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gggp_ has quit [Ping timeout: 272 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 258 seconds]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
desnudopenguino has quit [Ping timeout: 245 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 258 seconds]
fdan has joined #ruby
<fdan>
still checking if anyone is around for a help about passenger + ruby
Oxfuxxx has quit [Quit: leaving]
gggp_ has quit [Ping timeout: 245 seconds]
<kluk>
isn't there a way write a lambda with positionally-named arguments in ruby? something like -> { #1 + #2 } being equivalent to ->(a, b){ a + b }
<leftylink>
sure.
<leftylink>
it's _1
<leftylink>
just like it is with blocks
pandabot has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
roadie has quit [Ping timeout: 272 seconds]
fdan has quit [Ping timeout: 246 seconds]
thiccdaddy has quit [Quit: Ping timeout (120 seconds)]
kluk has quit [Ping timeout: 250 seconds]
thiccdaddy has joined #ruby
chromis has quit [Ping timeout: 256 seconds]
jmcgnh has quit [Excess Flood]
finsternis has quit [Ping timeout: 256 seconds]
ansimita has quit [Ping timeout: 252 seconds]
ikonia_ has quit [Ping timeout: 245 seconds]
ged has quit [Ping timeout: 245 seconds]
chromis has joined #ruby
weaksauce has quit [Ping timeout: 256 seconds]
ged has joined #ruby
finsternis has joined #ruby
ikonia has joined #ruby
jmcgnh has joined #ruby
roadie has joined #ruby
_ht has joined #ruby
elf_fortrezz has joined #ruby
fdan has joined #ruby
<fdan>
how can i server an application using passenger and nginx
<fdan>
i get this message 2021/08/07 08:38:20 [error] 11144#0: *4 "/etc/nginx/public/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"
easbarbosa has quit [Ping timeout: 272 seconds]
<leftylink>
that seems fairly easy to rectify by making that file exist, then
<leftylink>
or changing the path
bandithijo has quit [Ping timeout: 268 seconds]
<fdan>
leftylink i have got that working
<fdan>
but i want passenger + nginx to serve the web app i have on port number 5000
<leftylink>
cool, wishing luck!
<fdan>
can i get any answers on that setup
Oxfuxxx has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Client Quit]
elf_fortrezz has quit [Quit: Client closed]
elf_fortrezz has joined #ruby
elf_fortrezz has quit [Client Quit]
elf_fortrez has joined #ruby
bandithijo has joined #ruby
elf_fortrez has quit [Ping timeout: 246 seconds]
fdan has quit [Ping timeout: 246 seconds]
reset has quit [Quit: reset]
Rounin has joined #ruby
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
henninb has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
roadie has quit [Ping timeout: 256 seconds]
ua_ has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
fmccann has joined #ruby
Melantha has joined #ruby
roadie has quit [Ping timeout: 258 seconds]
roadie has joined #ruby
fmccann has quit [Quit: Exeunt!]
roadie has quit [Ping timeout: 272 seconds]
flooose has joined #ruby
roadie has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
Oxfuxxx has quit [Ping timeout: 256 seconds]
Oxfuxxx has joined #ruby
rem has joined #ruby
fdan has joined #ruby
henninb has quit [Quit: leaving]
<fdan>
could anyone help me serve python application using passenger and nginx
mrkz_c has joined #ruby
bandithijo has quit [Quit: WeeChat 3.2-rc1]
graywolf has joined #ruby
tankf33der has joined #ruby
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
<adam12>
fdan: Wasn't this a Ruby application originally?
xall has joined #ruby
roadie has joined #ruby
coffeejunk has quit [Quit: Ping timeout (120 seconds)]
yosafbridge has quit [Quit: Leaving]
forvelin has quit [Quit: No Ping reply in 180 seconds.]
smarton has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]