Questions tagged [ruby-on-rails]
Ruby on Rails is an open-source, MVC web development framework written in Ruby, optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.
913 questions
Score of 0
0 answers
183 views
After Ubuntu upgrade, PG connection to server on socket failed
After upgrading a Rails app server from Ubuntu 22.04.5 to 24.04.2, my Rails app will not start, nor can I run rails db:migrate. I see this error:
ActiveRecord::DatabaseConnectionError: There is an ...
Score of 0
0 answers
173 views
Nginx proxy_pass to rails server
I'm trying to configure Nginx to proxy_pass to a Puma server running on localhost:3000. But, my browser reports that it can't establish a connection. The Rails service on port 3000 seems OK, and I can ...
Score of 0
0 answers
259 views
The way of logging at action of controller in Ruby on Rails for debug purpose
I am just trying to know if router is reaching to specific action of controller.
In js, we are using console.log and var_dump in php.
I tried with puts but it didn't work and I think it's because of ...
Score of 1
1 answer
220 views
Is Mastodon remove-orphans safe when multiple instances sharing an S3 bucket?
I have two Mastodon v4.2.0 instances, a staging server and a live/production instance. They share an AWS S3 bucket for file storage. Both are hosted on DigitalOcean.
Is the command RAILS_ENV=...
Score of 0
1 answer
193 views
nginx in front of Rails
We want to put nginx with mTLS in front of our Rails app. We want that mTLS is turned on only if request goes trough specific domain. E.g.:
I want that https://mypage.com works without mTLS, however I ...
Score of 0
1 answer
208 views
mTLS on Heroku with Rails
We currently host on Heroku and we need to implement mTLS in front of our Rails app. What is a good strategy to achieve this?
It seems like we need reverse proxy which knows how to deal with mTLS. ...
Score of 0
1 answer
87 views
authorize multiple domains to send via send-only Postfix server
A rails application is sending an email to postfix for processing with From: do-not-reply@some_domain.top returning an error:
[ActionMailer::MailDeliveryJob] [fa3df6b5-72a4-4a57-a5f8-ef7a98e4d8a9]
...
Score of 2
1 answer
886 views
nginx serving content from wrong proxy
I have a single server hosting several Rails sites. All sites are identified by unique host names (all domain names map to the same IP address). Both Rails and nginx are running in Docker containers....
Score of 2
1 answer
1124 views
Webpacker can't find static assets
I created a Mastodon instance with DigitalOcean's preconfigured droplet which deploys version 5.3.5 of Mastodon on Ubuntu 20.04. I ran the setup wizard, then I immediately upgraded it to v4 of ...
Score of 0
1 answer
183 views
Rails 6 - Understanding AWS Pricing for CDN video on demand application
I am working on an Rails 6 application, already on production which is heavily dependent on AWS Services like S3, Lambda, Cloudtrail, SNS and CDN to serve a video-on-demand app, where users can upload ...
Score of 0
1 answer
1403 views
AWS ElasticBeanstalk: Early termination of worker [puma] Loading development - gems?
I'm currently upgrading rails from 6 to 7 and so had to upgrade my eb platform-version as well (to run ruby-3.0).
Now puma isn't able to start and always looping through:
[13033] + Gemfile in context: ...
Score of 0
1 answer
2433 views
mysql root password is empty
I am trying to install mysql after i replaced my disk with MySQL on it with a bigger and faster one. After installing mysql-server on ubuntu, when running select user,host,authentication_string from ...
Score of 1
0 answers
4094 views
Redis is seeing legitimate connections as attacks - possibly due to reverse proxy?
I'm running Redis for use with Rails and Action Cable. These all sit behind an Nginx reverse proxy. Currently whenever Redis is connected to, I get
# Possible SECURITY ATTACK detected. It looks like ...
Score of 0
1 answer
2294 views
Passenger not running (Ruby on Rails + Nginx)
My AWS instance was working fine with my app. But, today, the server was down without memory ram. Then I run:
sync; echo 1 > /proc/sys/vm/drop_caches
sudo service nginx start
After that, ram ...
Score of 0
0 answers
2774 views
NGINX Is redirecting to localhost:3000
I'm using ruby on rails in a docker container running my website https://redrebelgames.com on port 3000. I'm trying to setup NGINX to redirect http:// traffic to https:// and redirect port 80 to port ...