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.

Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.

911 questions
0
votes
2 answers

Passenger: mod_rewrite rules for non-default page cache directory for Rails application

Does anybody have some working Apache mod_rewrite rules that enable Phusion Passenger (mod_rails) to use a non-default location for the page cache within a Rails application? I'd like the cached files to go in /public/cache rather than the default…
John Topley
  • 2,175
  • 3
  • 16
  • 17
0
votes
1 answer

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] Error performing ActionMailer::MailDeliveryJob…
Jerome
  • 207
  • 1
  • 8
0
votes
0 answers

What is the correct number of Puma workers when there are two Rails application multithreaded, inside server with 4 CPU cores?

I have a server with four CPU cores and two rails applications served with the Puma in multithreaded mode. Both applications use the same number of resources and are expected to have an equal load. How should I set the number of workers in Puma…
0
votes
5 answers

Is there a RoR hosting site that I can pay by month?

I need RoR hosting, but all the hosting solutions only allow payments by the year. I need a payment plan that is every month, or even every 4-5, but not a whole year.
cam
0
votes
0 answers

EC2 - rails - Docker - NGINX Unable to proxy_pass redirect to localhost:3000

I have an EC2 instance running Ubuntu 20.04. Within this ec2 instance I have 2 docker containers, one running a NGINX server and another one running a rails application. For the NGINX server which Im using as a reverse proxy, I'm redirect using…
0
votes
0 answers

Rails Server on VirtualBox VM Inaccessible Via Web Browser on A Different System

I have a VirtualBox VM running Ubuntu 22.04 in Bridged mode. It has Rails 7.0.4 with Ruby 3.1 installed. It has a basic crud website on it at the moment. The VM can be accessed via SSH from a different Windows system. The VM, clearly, can also…
CitizenX
  • 101
  • 1
0
votes
0 answers

How do I keep NGINX directory ownership after installation on Amazon 2 EC2

I have NGINX server set up as proxy to a rails application. In the main config file /etc/nginx/nginx.conf I've set user to be ec2-user, which is the default user for this instance. Since NGINX server is installed via sudo (root account), I had to…
Vlad
  • 113
  • 5
0
votes
2 answers

Ubuntu Slow Server Response; Initial Load; RoR

I have a rails app sitting on an Ubuntu 9.10 server located here: http://sandbox.incolo.com If you hit it initially, it takes about 4 seconds to do its initial load. Once the load has happened the server response nearly instantly. Any thoughts as…
Justin
0
votes
1 answer

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 large videos and view and share it with…
Milind
  • 101
  • 2
0
votes
1 answer

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: /var/app/current/Gemfile [13033] ! Unable to…
0
votes
1 answer

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 user where user='root';, authentication_string is…
juls07
  • 3
  • 3
0
votes
1 answer

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 memory consumption is ok, but the app not. I'm running a…
Diego Somar
  • 101
  • 5
0
votes
0 answers

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 3000. It's working if you go directly to the IP…
Ryan Glenn
  • 101
  • 1
0
votes
1 answer

EC2: Relatively small network out spikes cause 100% CPU usage

Background Hello, I have a server I'm running on a free EC2 instance. I'm using nginx and passenger/rails as my web server and application server. The server receives little traffic (still in development), but a reasonable amount of traffic from…
0
votes
1 answer

Connecting to db via SSH on docker fails

I'm trying to connect to a database via SSH from my docker container. I'm getting an error could not connect to server: Connection refused Is the server running on host "0.0.0.0" and accepting TCP/IP connections on port 5433? I have a…