<graial>
Good morning, within the facebook-messenger gem, I'm getting the following LoadError on a fresh rails install:
<graial>
'/home/al/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': No such file to load -- facebook/messenger.rb (LoadError)
<graial>
adam12: wow, that is embarassing, no it wasn't. I guess i was just typing 'gem install facebook-messenger' and assuming it would get added to my gemfile. I feel really silly now. Thanks a lot
factormystic has quit [Ping timeout: 244 seconds]
factormystic0 is now known as factormystic
ruurd has joined #ruby
<adam12>
graial: Bundler manipulates $LOAD_PATH so while your assumption would of been correct, Bundler throws it out the window :)
alexherbo2 has joined #ruby
<apotheon>
s/would of/would have/
<graial>
adam12: fair enough, in javascript there is `npm install <name> --save` which will add the package to package.json. does `gem install` have a similar switch?
<adam12>
graial: bundle add <name>
<adam12>
graial: This might change in the future since Rubygems and Bundler are merging, but at this point they are partly separate. `gem` existed for like 10 years before `bundle`.
marens has quit [Ping timeout: 256 seconds]
sarna has quit [Quit: Connection closed]
powerhouse has joined #ruby
braincrash has joined #ruby
chouhoulis has joined #ruby
Vingador has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
houhoulis has joined #ruby
<graial>
adam12: ok, thanks a lot for the clarification
joast has quit [Ping timeout: 240 seconds]
bmurt has quit [Ping timeout: 272 seconds]
marens has joined #ruby
marens has joined #ruby
marens has quit [Changing host]
leitz has joined #ruby
houhoulis has quit [Remote host closed the connection]
marens has quit [Ping timeout: 264 seconds]
cthu| has joined #ruby
alfiemax has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
cnsvc has joined #ruby
chouhoulis has joined #ruby
bmurt has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
elxbarbosa has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
fercell has joined #ruby
TCZ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
fercell has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
Mrgoose has joined #ruby
SeepingN has joined #ruby
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<leitz>
Recommended platform (Amazon, Google App Engine, Digital Ocean, etc) for a small Ruby/Roda/SQLite app?
alexherbo2 has joined #ruby
ricer2 has quit [Quit: Caught SystemExit exception.]
ricer2 has joined #ruby
<havenwood>
leitz: Any of the above should work great.
<havenwood>
leitz: You might have problems with App Engine and sqlite.
<havenwood>
leitz: On second thought ^
<havenwood>
leitz: Yeah, App Engine would have the similar issues to Heroku with sqlite.
<havenwood>
leitz: So AWS versus DO remaining from your question.
<havenwood>
leitz: DO is a bit more intuitive but has a smaller garden of features. DO works well for my personal servers. My only gripe is that you have to pay for ones that are spun down, unlike AWS.
<havenwood>
leitz: Switch from sqlite to Postgres and use Heroku. :P
ramfjord has joined #ruby
<havenwood>
leitz: TL;DR: DO
jinie has joined #ruby
<havenwood>
Or EC2. Really a quite similar experience from my vantage.
<havenwood>
Using sqlite gets rid of fancy options, so you need to worry about firewalls and that sort of thing yourself.
<havenwood>
Google App Engine and Heroku stay ahead of the game for you.
<leitz>
havenwood, I've looked at PostGreSQL and MySQL, but really like the light-weight nature of SQLite. Since nothing besides this web-app will connect to the DB, that should take care of the security.
<leitz>
havenwood, at least from a minimal view. No sensitive data involved, at least with this iteration.
<havenwood>
leitz: I mean security like keeping dependencies updated, a firewall, owasp, that sort of thing.
<havenwood>
leitz: Yeah, light is nice. Postgres just works too though, especially with a managed service like Heroku or App Engine.
<leitz>
havenwood, you know my penchant for small footprint.
<havenwood>
leitz: They give you a bunch of niceties.
<havenwood>
leitz: DO or EC2 certainly work well if you curate them yourself.
<havenwood>
leitz: You might try a quick switch to Postgres with Heroku and see how you like that.
<leitz>
havenwood, I tried poking at Postgees and just didn't care for it. Not too sure why. I can probably manage a DO droplet via Ansible, too.
<havenwood>
leitz: Otherwise, DO or EC2 both give you a nice box to fiddle with yourself.
<leitz>
havenwood, AWS wanted to charge $5/mo for Route 53 naming to a static bucket. Didn't much care for that.
<havenwood>
leitz: DO is simple. Spin up a droplet, apply a firewall and IP, and on to configuration.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<leitz>
havenwood, I need to read up on DO. In this case, smaller is better.
<havenwood>
DO is pretty easy to navigate. Create your "Droplet," then click on "Networking" and "Firewalls" then "Create Firewall." You can then see the Droplet you just created and put your Firewall in front of it.
<havenwood>
leitz: Then "Floating IPs" is free IIR, also under "Networking" tab.
<havenwood>
leitz: From there it's just ssh or mosh onto it and g2g for setting up Puma/Falcon for Roda.
schne1der has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
SuperLag has joined #ruby
dualfade has quit [Ping timeout: 272 seconds]
dualfade has joined #ruby
<leitz>
havenwood, does Puma/Falcon replace Thin?
<havenwood>
leitz: Yes.
<leitz>
havenwood, or whatever sits on top of Rack.
<havenwood>
leitz: Puma and Falcon are alternatives to Thin.
<leitz>
havenwood, ah, gotcha. Any real difference I would care about?
<leitz>
havenwood, other than Puma having a lot fewer dependencies. And at least in theory working on Ruby 3.x
akem has quit [Quit: Leaving]
<havenwood>
leitz: Yes, Puma is generally a battle tested, more modern choice than Thin.
<havenwood>
leitz: Falcon is more modern yet and takes advantage of Ruby 3.0 features.
<havenwood>
leitz: Falcon has a lot of things to love.
<havenwood>
leitz: One of them is simplicity—removing other tools entirely while supporting HTTP/2 natively.
<havenwood>
leitz: You'd have to pester ioquatix for an async sqlite adapter, which he may very well be willing to create.
<ramfjord>
leitz: you should give postgres another shot man, it's great! The native support for jsonb columns works very nicely with ruby ORMs, lateral joins can *vastly* speed up queries that would otherwise require window functions, the table inheritance and rule structures let you easily configure and manage partitions for tables > 100 million rows
<havenwood>
leitz: Check deps and make sure you're getting latest Falcon, since 2.5 shouldn't be required at all.
<havenwood>
Strange!
dionysus69 has quit [Ping timeout: 256 seconds]
<ramfjord>
leitz: I could install falcon 0.36 on the base ruby:2.7 docker image just now. Check if you've got another library in your gemfile that has a dependency in common with falcon maybe
<ramfjord>
that could be preventing it from installing 0.36
<ramfjord>
0.36.5
Nahra has joined #ruby
<leitz>
ramfjord, the issue is that async-io isn't okay with Ruby 3.x. Just a gem file dependency that hasn't been updated.
TCZ has quit [Quit: Leaving]
<leitz>
Opened an issue with async-io on GitHub. My guess is that it'll work on 3.x, but I don't know that much.
elxbarbosa has quit [Remote host closed the connection]
r29v has joined #ruby
bmo has joined #ruby
Rudd0 has joined #ruby
adu has joined #ruby
TCZ has joined #ruby
<leitz>
Hah! ioquantix replied to the issue that it was by design, new release coming soon. :)
<havenwood>
Nice!
Tempesta_ has joined #ruby
donofrio_ has joined #ruby
johndotpub has quit [Read error: Connection reset by peer]
johndotpub has joined #ruby
lxsameer has quit [Quit: WeeChat 2.9]
lxsameer has joined #ruby
Tempesta has quit [Ping timeout: 260 seconds]
donofrio has quit [Ping timeout: 260 seconds]
Tempesta_ has left #ruby ["Closing Channel, bye."]