Chris Oliver

Joined

292,300 Experience
93 Lessons Completed
295 Questions Solved

Activity

Posted in API CRUD Actions Discussion

Yep, it's released as the vultr gem! 🚀

https://rubygems.org/gems/vultr

Posted in This website is under heavy load (queue full)

Skylight (my favorite), AppSignal, New Relic, etc are useful as they'll monitor your app's response times and can help you pinpoint slow stuff like queries or views.

Posted in This website is under heavy load (queue full)

Sounds like a lot of requests all came in at once. That's can happen when you're load testing, have a big spike in traffic (like launching something new) or if you're getting attacked by malicious users.

You can increase Passenger's queue size configuration, but it may just fill up the larger queue if Rails isn't processing requests fast enough. You might want to check and make sure that your response times in Rails are not slowing down with slow views / queries.

Posted in How to add overrides to a rails app?

Typically you'll just want to fork the original repo and merge updates from it. That's what we do for Jumpstart Pro when users want to pull in updates.

Posted in Host PHP without breaking Hatchbox?

Maybe Apache was a dependency of something you installed? Definitely can't have it running or else they'll conflict. 😅

Posted in Jumpstart App get's stucked with wrong login data

Fantastic! Let me know if you run into any other issues! We're still working on Madmin, but it should do all the basics nicely.

Posted in Host PHP without breaking Hatchbox?

I hear you! It wasn't my thing either, but it is now I guess. 😜

Posted in Jumpstart App get's stucked with wrong login data

Alrighty, pushed fixes for that. If sign up or login failed, it would just hang. Those are both working now. 👍

Posted in Host PHP without breaking Hatchbox?

Enabled the language option for your account. 👍

Posted in Host PHP without breaking Hatchbox?

You can add your own sites in /etc/nginx/sites-enabled/mysite. Just don't use a name that matches an app name in Hatchbox.

Hatchbox doesn't really make any adjustments to the NGINX config other than enabling Passenger, so you're free to add PHP, etc. 👍

I actually have a private beta in Hatchbox that lets you choose a language when you deploy an app. You could deploy your PHP scripts from there (I've tested Laravel and Wordpress I believe). I'll have to add enable that on your account and you can then select the language when you create a new app.

We're working almost finished with the first version of Hatchbox v2, which switches to ASDF so each app can specify their language (and versions) so in the future you'll be able to deploy PHP apps. 🔥

Posted in Jumpstart App get's stucked with wrong login data

Logging in with invalid credentials does fail and is a bug. I'll get that fixed. 👍

Posted in Jumpstart App get's stucked with wrong login data

I just updated Jumpstart open source to use Hotwire, so maybe there is a bug in it. I'll have to try it out again.

Also feel free to post this on the Jumpstart repository so I can keep track easier. 👍

Posted in Jumpstart App get's stucked with wrong login data

What version of Rails are you on?

Posted in DHH's most recent hotwire update...

This will be nice for simpler applications that don't need a lot of JS dependencies. You'll be able to ship all your Javascript really quickly and easily. This will be great for Stimulus controllers and other basic code.

Evan You who created Vue and Vite had some comments on it: https://twitter.com/youyuxi/status/1425933472871456777
He's specifically referring to larger frontend applications and I think those are valid points where Webpacker, Vite, or an alternative will still be the best option.

So it sounds like it depends on what you need. Importmaps will be perfect for applications that don't have a ton of frontend dependencies. I think Rails has always pushed for minimal JS, so it makes sense to use importmaps out of the box.

Posted in Ruby Colorize Error Help

Sounds like you need the colorize gem: https://github.com/fazibear/colorize

Posted in Introduction to Stimulus Reflex Discussion

I know Jason Charnes built a testing library for SR when they started using at Podia. Probably the tool to use: https://github.com/podia/stimulus_reflex_testing

Z-index to the rescue! The Places Autocomplete was a lower z-index than the modal, so some CSS fixes that nicely by raising it over the z-index of the modal (which was 9999).

Create app/javascript/stylesheets/components/places.scss

// Raise z-index of Google Places Autocomplete higher than the modal z-index
.pac-container {
    z-index: 10000 !important;
}

Add the following to app/javascript/stylesheets/components.scss

@import "components/places";

I'm leaving for vacation on Thursday so I don't have much time, but if you've got some sample code I can run, send me an email. 👍

Posted in Law of Demeter - Question

Yeah, that is not equivalent there because you're not filtering the evalulations, only the skill. You need to have it in a single query.

DHH doesn't like the Law of Demeter, so I wouldn't worry too much about trying to follow it. He's written about it a few times: https://signalvnoise.com/posts/3341-pattern-vision