adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
Tuor has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Tuor has joined #ruby
Oddmonger has quit [Ping timeout: 265 seconds]
grawlinson has quit [Quit: SIGTERM]
grawlinson has joined #ruby
<auk> adam12, thank you
<auk> i guess what i'm looking at is a hash not a method keyword argument call
<adam12> auk: Correct. It's a Hash with a symbol key.
<adam12> auk: It's 1.8 syntax, often referred to as a hash rocket.
<auk> adam12, ahh thank you. i think hash rocket is the magic words i need to find info on it
<adam12> auk: cheers.
grawlinson has quit [Quit: SIGTERM]
motherr has joined #ruby
easbarbosa has joined #ruby
grawlinson has joined #ruby
ur5us__ has quit [Ping timeout: 258 seconds]
auk has quit [Quit: Leaving]
fmccann has quit [Quit: Exeunt!]
gggp has joined #ruby
vaillancourtmax has quit [Quit: Leaving]
motherr has quit [Quit: zzz]
gggp_ has joined #ruby
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qk1z has joined #ruby
gggp has quit [Ping timeout: 272 seconds]
ur5us__ has joined #ruby
ua_ has quit [Excess Flood]
ua_ has joined #ruby
kenichi has quit [Ping timeout: 245 seconds]
ua_ has quit [Excess Flood]
ua_ has joined #ruby
Rounin has quit [Ping timeout: 258 seconds]
jetchisel has quit [Ping timeout: 245 seconds]
shokohsc has quit [Read error: Connection reset by peer]
shokohsc has joined #ruby
motherr has joined #ruby
motherr has quit [Client Quit]
cer-0 has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
kenichi has joined #ruby
cer-0 has quit [Ping timeout: 240 seconds]
cer-0 has joined #ruby
ur5us__ has quit [Remote host closed the connection]
ur5us__ has joined #ruby
easbarbosa has quit [Ping timeout: 256 seconds]
cer-0 has quit [Ping timeout: 245 seconds]
pgib has quit [Ping timeout: 252 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 258 seconds]
gr33n7007h has quit [Ping timeout: 258 seconds]
kaleido has quit [Remote host closed the connection]
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
ur5us__ has quit [Ping timeout: 272 seconds]
mrkz_c has quit [Quit: Connection closed for inactivity]
ShalokShalom66 has joined #ruby
<nakilon> btw, having a trouble using tty-prompt
<nakilon> I need to loop a prompt with select, and pass as a default the option user selected previous time
<nakilon> the problem is that #select returns the :value while :default wants the :name
<nakilon> would be better if it returned the whole structure with name and value
gggp_ has quit [Ping timeout: 272 seconds]
<nakilon> seems like I have to make a kludge of adding the name to the value
lessless has joined #ruby
gr33n7007h has joined #ruby
gggp_ has joined #ruby
constxd has joined #ruby
<constxd> is the #ruby on freenode still the most active ruby irc channel?
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
jetchisel has joined #ruby
_ht has joined #ruby
Oxfuxxx has quit [Ping timeout: 245 seconds]
<nakilon> idk, ops here said we are moved here so I disconnected; also lazy to reregister my account
<nakilon> that was a smart move by saboteurs -- instead of dropping the freenode database and then proposing to register here (and people would think 'why the hell should we reregister in another place?!') they did it in the opposite order, by making people register here first and only then dropping the db
* nakilon is silent
Oxfuxxx has joined #ruby
qk1z has quit [Quit: WeeChat 2.8]
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Client Quit]
Oxfuxxx has joined #ruby
menace has joined #ruby
menace has quit [Changing host]
menace has joined #ruby
menace is now known as Deknos
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
gggp__ has joined #ruby
Oxfuxxx_ has joined #ruby
gggp_ has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
ShalokShalom66 has quit [Ping timeout: 246 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 256 seconds]
Rounin has joined #ruby
flooose has joined #ruby
ur5us__ has joined #ruby
elf_fortrez has joined #ruby
Oxfuxxx_ has quit [Quit: leaving]
crankharder has joined #ruby
<adam12> constxd: I'd be surprised if this wasn't the most active ruby irc channel now.
crankharder has quit [Ping timeout: 272 seconds]
crankharder has joined #ruby
gggp__ has joined #ruby
gggp_ has quit [Remote host closed the connection]
ShalokShalom has joined #ruby
ShalokShalom has left #ruby [#ruby]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 272 seconds]
ur5us__ has quit [Ping timeout: 258 seconds]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 252 seconds]
Oxfuxxx has joined #ruby
motherr has joined #ruby
aesthetikx has quit [Quit: WeeChat 3.2]
gggp__ has quit [Read error: Connection reset by peer]
gggp has joined #ruby
motherr has quit [Quit: motherr]
flooose has quit [Ping timeout: 240 seconds]
gggp has quit [Remote host closed the connection]
gggp has joined #ruby
gggp has quit [Remote host closed the connection]
gggp has joined #ruby
gggp has quit [Remote host closed the connection]
gggp has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
Oxfuxxx_ has joined #ruby
Oxfuxxx has quit [Ping timeout: 272 seconds]
cer-0 has joined #ruby
Oxfuxxx_ has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx_ has joined #ruby
cer-0 has quit [Quit: leaving]
Oxfuxxx has quit [Ping timeout: 258 seconds]
gggp_ has joined #ruby
gggp has quit [Ping timeout: 258 seconds]
elf_fortrez has quit [Quit: Client closed]
gggp has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
Oddmonger has joined #ruby
gggp_ has joined #ruby
flooose has joined #ruby
gggp has quit [Ping timeout: 258 seconds]
pgib has joined #ruby
kenichi has quit [Quit: ZNC 1.8.2 - https://znc.in]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx_ has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
gggp__ has joined #ruby
flooose has quit [Ping timeout: 272 seconds]
kenichi has joined #ruby
gggp_ has quit [Ping timeout: 240 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 258 seconds]
AriT93 has joined #ruby
Oxfuxxx has quit [Ping timeout: 256 seconds]
Oxfuxxx has joined #ruby
smarton has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
smarton has joined #ruby
Oxfuxxx_ has joined #ruby
Oxfuxxx has quit [Ping timeout: 272 seconds]
crankharder has quit [Ping timeout: 258 seconds]
forvelin has quit [Quit: No Ping reply in 180 seconds.]
forvelin has joined #ruby
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
coffeejunk has quit [Quit: Ping timeout (120 seconds)]
kapil has joined #ruby
coffeejunk has joined #ruby
forvelin has quit [Client Quit]
forvelin has joined #ruby
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
kapil has joined #ruby
crankharder has joined #ruby
AriT93 has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
orbyt has joined #ruby
flooose has joined #ruby
crankharder has quit [Quit: leaving]
crankharder has joined #ruby
bandithijo has joined #ruby
TomyWork has quit [Quit: Leaving]
bandithijo has quit [Client Quit]
bandithijo has joined #ruby
bandithijo has quit [Ping timeout: 258 seconds]
lunarkitty has joined #ruby
Oxfuxxx_ has quit [Quit: leaving]
gggp_ has quit [Ping timeout: 256 seconds]
flooose has quit [Ping timeout: 258 seconds]
fdan has joined #ruby
<fdan> hi there
<fdan> could someone help me use passenger + ruby
<fdan> i want the webapp to be server through passenger and nginx
[jamez] has quit [Ping timeout: 258 seconds]
[jamez] has joined #ruby
goepsilongo has joined #ruby
<adam12> fdan: What have you done so far? Where are you stuck?
<fdan> adam12 the error.log says me this
<adam12> fdan: Are you following a guide or tutorial?
<fdan> no i am not
<adam12> fdan: Can you share in a post your nginx config?
<fdan> sure
<weaksauce> are you set on nginx?
<weaksauce> a basic reverse proxy is dead simple with caddy
<fdan> yes
<fdan> i am trying to do everything here with docker
<adam12> fdan: I'd try using a path that's not /root. Like /usr/src/app or something.
<adam12> fdan: Is /root something that you've set for Docker to bind-mount, or a volume? or part of the Dockerfile?
<adam12> fdan: Can you share your Dockerfile too?
<fdan> i found one error , the public directory was in /
<weaksauce> what are the permissions of that file?
<adam12> fdan: Share Dockerfile, and share how you're running this image. docker-compose (share your docker-compose.yml) or docker cli (share the command you're using)
<adam12> fdan: and you're using `docker run`?
<fdan> yes adam
<fdan> i think something is starting to work
<fdan> let me give it a shot once
<adam12> That Docker image has zero instructions.
<adam12> I'd personally punt on this image and just use the official Ruby image. Then do what weaksauce suggested and use Caddy.
<adam12> Outside of that, I'd probably update the Dockerfile to `mkdir /usr/src/app`, make a user `useradd app`, then `copy --chown=app . /usr/src/app`. Configure nginx to use /usr/src/app/public as root.
<fdan> is my configuration right with respect to the passenger
<fdan> i dont want to use caddy for this task..
<fdan> right now nginx default page loads for me
<adam12> fdan: It looks OK. I think you're running into permission issues. /root is protected, and nginx is likely not running as it.
<adam12> fdan: What about using the full passenger image for now, then switching to a different one?
<fdan> does this have nginx?
<fdan> i also checked at /var/log/nginx/error.log
<fdan> i dont see anything
<adam12> fdan: Yes. Passenger is always paired with nginx.
<adam12> fdan: That might be because containers generally log to stdout/stderr, tho the Phusion folks like to deviate in their containers so I'm not sure if that holds true.
<fdan> ok i have one more question
<fdan> passenger has some /path in the url?
<fdan> how do i find that
<adam12> fdan: Not sure? What do you mean?
<fdan> http://www.someurl.com/path - does the passenger app of mine have some path set
<adam12> fdan: I doubt it, judging from your nginx config.
<fdan> hmmm the nginx doesnt log any errors
<fdan> one more problem with this image was i had to start nginx by myself after execing
<fdan> this image also doesnt have nginx running at start phusion/passenger-full
<fdan> on port 80 - this is what i get https://pasteboard.co/KeFLBnR.png
<fdan> this is the error i get https://dpaste.org/netn
<fdan> could you help me here adam12 i think im a bit closer
<adam12> fdan: There must be something else to go along with that error: 12982364
<adam12> fdan: Neither of those pastes have anything useful.
<fdan> ahh
<adam12> Check for a passenger log file.
<adam12> I'm ducking out in a few minutes.
<fdan> where is to be found
<fdan> ah ok
<adam12> fdan: I'm not sure where it's found. You'll have to dig for it. This isn't the way I deploy Docker apps.
<weaksauce> could use that... it has nginx and passenger
<fdan> yes that's what i am using but nginx doesnt start automatically
<weaksauce> the instructions are pretty thorough there
<fdan> could you tell me how to find the ruby version
<weaksauce> i mean it's in the docs
<fdan> weaksauce this is the dockerfile i have https://dpaste.org/KwKL
<fdan> still its the same error
<weaksauce> idk i'm no docker expert. i'd read through the docs again and see if you missed something
ur5us__ has joined #ruby
<fdan> i get this App 44 output: Traceback (most recent call last):
<fdan> App 44 output: File "/usr/share/passenger/helper-scripts/wsgi-loader.py", line 369, in <module>
<fdan> App 44 output: app_module = load_app()
<fdan> App 44 output: File "/usr/share/passenger/helper-scripts/wsgi-loader.py", line 76, in load_app
<fdan> App 44 output: return imp.load_source('passenger_wsgi', startup_file)
<fdan> App 44 output: File "/home/app/webapp/passenger_wsgi.py", line 1, in <module>
<fdan> App 44 output: from app import app as application
<fdan> App 44 output: File "/home/app/webapp/app.py", line 6, in <module>
<fdan> App 44 output: from flask import Flask
<fdan> App 44 output: ImportError: No module named flask
<weaksauce> oh no
<weaksauce> gist next time
<fdan> my bad. sorry
<weaksauce> and that's a python issue not a docker one
<fdan> weaksauce what does listen 80 mean
<fdan> for me the python application runs on 5000
desnudopenguino has quit [Ping timeout: 252 seconds]
<weaksauce> listen 80 means port 80
desnudopenguino has joined #ruby
chonkbit has joined #ruby
<fdan> any idea on this error
Deknos has quit [Quit: Deknos]
Oxfuxxx has joined #ruby
<weaksauce> it looks like it's serving out of the log directory for some reason?
flooose has joined #ruby
ur5us__ has quit [Ping timeout: 258 seconds]
<weaksauce> at this point you should just put something on github so others can see the entirety of it in situ
fdan has quit [Ping timeout: 246 seconds]
crankharder has quit [Quit: leaving]
chonkbit has quit [Quit: Konversation terminated!]
lunarkitty has quit [Quit: Connection closed for inactivity]
_ht has quit [Remote host closed the connection]
neshpion has joined #ruby
shokohsc has quit [Read error: Connection reset by peer]
shokohsc has joined #ruby
pgib has quit [Quit: 00 PC LOAD LETTER]
lessless has quit [Ping timeout: 258 seconds]
bandithijo has joined #ruby
lunarkitty has joined #ruby
orbyt has quit [Read error: Connection reset by peer]
bandithijo has quit [Ping timeout: 240 seconds]
cout has quit [Ping timeout: 255 seconds]
cout has joined #ruby
bandithijo has joined #ruby
Melantha has quit [Quit: WeeChat 3.2]